fix mailer spec

This commit is contained in:
Devin Howard 2016-12-14 22:50:25 -05:00
parent 954cc15621
commit 7680a9e928

View file

@ -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] }