fix mailer spec
This commit is contained in:
parent
954cc15621
commit
7680a9e928
1 changed files with 2 additions and 2 deletions
|
@ -2,9 +2,9 @@ require 'rails_helper'
|
|||
|
||||
RSpec.describe MapMailer, type: :mailer do
|
||||
describe 'access_request_email' do
|
||||
let(:request) { create(:access_request) }
|
||||
let(:map) { create(:map) }
|
||||
let(:mail) { described_class.access_request_email(request, map) }
|
||||
let(:request) { create(:access_request, map: map) }
|
||||
let(:mail) { described_class.access_request_email(request) }
|
||||
|
||||
it { expect(mail.from).to eq ['team@metamaps.cc'] }
|
||||
it { expect(mail.to).to eq [map.user.email] }
|
||||
|
|
Loading…
Reference in a new issue