[Fix #1972] Always send mails asynchronously
This commit is contained in:
parent
cce00e19c6
commit
07b1c147d9
23 changed files with 45 additions and 32 deletions
|
@ -131,7 +131,7 @@ describe InvitesController, type: :controller do
|
|||
context 'when user does not exist' do
|
||||
it 'send email' do
|
||||
expect(InviteMailer).to receive(:invite_guest).and_return(InviteMailer)
|
||||
expect(InviteMailer).to receive(:deliver_now!)
|
||||
expect(InviteMailer).to receive(:deliver_later)
|
||||
|
||||
subject
|
||||
end
|
||||
|
@ -144,7 +144,7 @@ describe InvitesController, type: :controller do
|
|||
|
||||
it 'send email' do
|
||||
expect(InviteMailer).to receive(:invite_user).and_return(InviteMailer)
|
||||
expect(InviteMailer).to receive(:deliver_now!)
|
||||
expect(InviteMailer).to receive(:deliver_later)
|
||||
|
||||
subject
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue