Merge pull request #3011 from betagouv/fix-mailer-tests

mailers: fix dossier mailer spec
This commit is contained in:
Pierre de La Morinerie 2018-11-20 17:51:10 +01:00 committed by GitHub
commit 37af20b236
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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