fix(dossier): explicitly send draft notification email

This commit is contained in:
Paul Chavard 2022-12-21 17:18:19 +01:00
parent 9be1030cba
commit 4a4ce67ef6
8 changed files with 28 additions and 51 deletions

View file

@ -14,7 +14,7 @@ RSpec.describe DossierMailer, type: :mailer do
describe '.notify_new_draft' do
let(:dossier) { create(:dossier, procedure: create(:simple_procedure, :with_auto_archive)) }
subject { described_class.notify_new_draft(dossier) }
subject { described_class.with(dossier:).notify_new_draft }
it { expect(subject.subject).to include("brouillon") }
it { expect(subject.subject).to include(dossier.procedure.libelle) }