Work on deletion mail

This commit is contained in:
simon lehericey 2019-11-28 18:03:23 +01:00
parent 79bfb8b143
commit 006e426a11
7 changed files with 53 additions and 4 deletions

View file

@ -1092,7 +1092,7 @@ describe Dossier do
it 'notifies deletion' do
expect(DossierMailer).to have_received(:notify_brouillon_deletion).once
expect(DossierMailer).to have_received(:notify_brouillon_deletion).with(expired_brouillon.user, [expired_brouillon])
expect(DossierMailer).to have_received(:notify_brouillon_deletion).with(expired_brouillon.user, [expired_brouillon.hash_for_deletion_mail])
end
it 'deletes the expired brouillon' do