Call #deliver in user_mailer_spec so mail is sent

This commit is contained in:
Matt-Yorkley
2020-11-06 21:03:57 +00:00
parent 3c74541145
commit 8f8973b6f9

View File

@@ -48,7 +48,7 @@ describe Spree::UserMailer do
# adapted from https://github.com/spree/spree_auth_devise/blob/70737af/spec/mailers/user_mailer_spec.rb
describe '#reset_password_instructions' do
describe 'message contents' do
let(:message) { described_class.reset_password_instructions(user, nil) }
let(:message) { described_class.reset_password_instructions(user, nil).deliver }
context 'subject includes' do
it 'translated devise instructions' do