mailers: improve notification layout
This commit is contained in:
parent
3702b0967d
commit
ea8bc0c961
2 changed files with 10 additions and 9 deletions
|
@ -1,9 +1,10 @@
|
||||||
= yield
|
= yield
|
||||||
|
|
||||||
%p ---
|
%footer
|
||||||
|
%p
|
||||||
%p.footer
|
—
|
||||||
%strong
|
%br
|
||||||
Merci de ne pas répondre à cet email. Pour vous adresser à votre administration, passez directement par votre
|
%strong
|
||||||
= succeed '.' do
|
Merci de ne pas répondre à cet email. Pour vous adresser à votre administration, passez directement par votre
|
||||||
= link_to 'messagerie', messagerie_dossier_url(@dossier), target: '_blank'
|
= succeed '.' do
|
||||||
|
= link_to 'messagerie', messagerie_dossier_url(@dossier), target: '_blank'
|
||||||
|
|
|
@ -34,7 +34,7 @@ RSpec.describe NotificationMailer, type: :mailer do
|
||||||
|
|
||||||
it { expect(mail.subject).to eq(email_template.subject_for_dossier) }
|
it { expect(mail.subject).to eq(email_template.subject_for_dossier) }
|
||||||
it { expect(mail.body).to include(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 { expect(mail.body).to have_selector('footer') }
|
||||||
|
|
||||||
it_behaves_like "create a commentaire not notified"
|
it_behaves_like "create a commentaire not notified"
|
||||||
end
|
end
|
||||||
|
@ -50,7 +50,7 @@ RSpec.describe NotificationMailer, type: :mailer do
|
||||||
it do
|
it do
|
||||||
expect(mail.subject).to eq(email_template.subject)
|
expect(mail.subject).to eq(email_template.subject)
|
||||||
expect(mail.body).to include(email_template.body)
|
expect(mail.body).to include(email_template.body)
|
||||||
expect(mail.body).to have_selector('.footer')
|
expect(mail.body).to have_selector('footer')
|
||||||
end
|
end
|
||||||
|
|
||||||
it_behaves_like "create a commentaire not notified"
|
it_behaves_like "create a commentaire not notified"
|
||||||
|
|
Loading…
Add table
Reference in a new issue