fix(spec): add missing double
This commit is contained in:
parent
08350f394e
commit
988fe34d0a
1 changed files with 1 additions and 1 deletions
|
@ -6,7 +6,7 @@ describe NotifyNewAnswerWithDelayJob, type: :job do
|
|||
let(:commentaire) { create(:commentaire) }
|
||||
|
||||
it 'call DossierMailer.notify_new_answer' do
|
||||
expect(DossierMailer).to receive(:notify_new_answer).with(dossier, body)
|
||||
expect(DossierMailer).to receive(:notify_new_answer).with(dossier, body).and_return(double(deliver_now: true))
|
||||
NotifyNewAnswerWithDelayJob.perform_now(dossier, body, commentaire)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue