mailer: add layout for notifications emails

This commit is contained in:
lucien mollard 2018-09-05 13:25:47 +00:00 committed by Pierre de La Morinerie
parent 2a5a8cf621
commit b2f2e75f43
9 changed files with 21 additions and 39 deletions

View file

@ -33,7 +33,9 @@ RSpec.describe NotificationMailer, type: :mailer do
end
it { expect(mail.subject).to eq(email_template.subject_for_dossier) }
it { expect(mail.body).to eq(email_template.body_for_dossier) }
it { expect(mail.body).to include(email_template.body_for_dossier) }
it { expect(mail.body).to have_selector('.footer') }
it_behaves_like "create a commentaire not notified"
end
@ -47,7 +49,8 @@ RSpec.describe NotificationMailer, type: :mailer do
it do
expect(mail.subject).to eq(email_template.subject)
expect(mail.body).to eq(email_template.body)
expect(mail.body).to include(email_template.body)
expect(mail.body).to have_selector('.footer')
end
it_behaves_like "create a commentaire not notified"