From 8f8973b6f964b6b8e00ce5ffbc27e256ecf3a6f4 Mon Sep 17 00:00:00 2001 From: Matt-Yorkley <9029026+Matt-Yorkley@users.noreply.github.com> Date: Fri, 6 Nov 2020 21:03:57 +0000 Subject: [PATCH] Call #deliver in user_mailer_spec so mail is sent --- spec/mailers/user_mailer_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/mailers/user_mailer_spec.rb b/spec/mailers/user_mailer_spec.rb index 9d1b597d26..8d4e5b40b9 100644 --- a/spec/mailers/user_mailer_spec.rb +++ b/spec/mailers/user_mailer_spec.rb @@ -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