[Fix #1972] Always send mails asynchronously
This commit is contained in:
parent
cce00e19c6
commit
07b1c147d9
23 changed files with 45 additions and 32 deletions
|
@ -221,7 +221,7 @@ describe NewUser::DossiersController, type: :controller do
|
|||
|
||||
it 'sends an email only on the first #update' do
|
||||
delivery = double
|
||||
expect(delivery).to receive(:deliver_now!).with(no_args)
|
||||
expect(delivery).to receive(:deliver_later).with(no_args)
|
||||
|
||||
expect(NotificationMailer).to receive(:send_initiated_notification)
|
||||
.and_return(delivery)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue