mailers: add CTA to templated emails
This commit is contained in:
parent
6195ee41f3
commit
8313752663
6 changed files with 37 additions and 0 deletions
|
@ -28,6 +28,11 @@ RSpec.describe NotificationMailer, type: :mailer do
|
|||
expect(mail.body).to have_link('messagerie')
|
||||
end
|
||||
|
||||
it 'renders the actions' do
|
||||
expect(mail.body).to have_link('Consulter mon dossier', href: dossier_url(dossier))
|
||||
expect(mail.body).to have_link('J’ai une question', href: messagerie_dossier_url(dossier))
|
||||
end
|
||||
|
||||
context 'when the template body contains tags' do
|
||||
let(:email_template) { create(:received_mail, subject: 'Email subject', body: 'Hello --nom--, your dossier --lien dossier-- was processed.') }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue