Merge pull request #3011 from betagouv/fix-mailer-tests
mailers: fix dossier mailer spec
This commit is contained in:
commit
37af20b236
1 changed files with 1 additions and 1 deletions
|
@ -9,7 +9,7 @@ RSpec.describe DossierMailer, type: :mailer do
|
||||||
subject { described_class.notify_new_draft(dossier) }
|
subject { described_class.notify_new_draft(dossier) }
|
||||||
|
|
||||||
it { expect(subject.subject).to include("brouillon") }
|
it { expect(subject.subject).to include("brouillon") }
|
||||||
it { expect(subject.subject).to include(dossier.id.to_s) }
|
it { expect(subject.subject).to include(dossier.procedure.libelle) }
|
||||||
it { expect(subject.body).to include(dossier.procedure.libelle) }
|
it { expect(subject.body).to include(dossier.procedure.libelle) }
|
||||||
it { expect(subject.body).to include(dossier_url(dossier)) }
|
it { expect(subject.body).to include(dossier_url(dossier)) }
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue