fix(spec): add missing double

This commit is contained in:
Martin 2021-11-16 03:42:31 +01:00
parent 08350f394e
commit 988fe34d0a

View file

@ -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