mailer: add layout for notifications emails
This commit is contained in:
parent
2a5a8cf621
commit
b2f2e75f43
9 changed files with 21 additions and 39 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue