fix(dossier): explicitly send draft notification email
This commit is contained in:
parent
9be1030cba
commit
4a4ce67ef6
8 changed files with 28 additions and 51 deletions
|
@ -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) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue