Merge pull request #3075 from betagouv/improve-emails

Petites améliorations sur les emails de notification
This commit is contained in:
gregoirenovel 2018-11-27 15:57:09 +01:00 committed by GitHub
commit b015d1ca27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 11 additions and 10 deletions

View file

@ -6,7 +6,7 @@
%p
Pour le consulter, merci de vous rendre sur
= messagerie_dossier_url(@dossier)
= link_to messagerie_dossier_url(@dossier), messagerie_dossier_url(@dossier), target: '_blank'
%p
Bonne journée,

View file

@ -1,8 +1,9 @@
= yield
%p ---
%p.footer
%footer
%p
%br
%strong
Merci de ne pas répondre à cet email. Pour vous adresser à votre administration, passez directement par votre
= succeed '.' do

View file

@ -34,7 +34,7 @@ RSpec.describe NotificationMailer, type: :mailer do
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 have_selector('.footer') }
it { expect(mail.body).to have_selector('footer') }
it_behaves_like "create a commentaire not notified"
end
@ -50,7 +50,7 @@ RSpec.describe NotificationMailer, type: :mailer do
it do
expect(mail.subject).to eq(email_template.subject)
expect(mail.body).to include(email_template.body)
expect(mail.body).to have_selector('.footer')
expect(mail.body).to have_selector('footer')
end
it_behaves_like "create a commentaire not notified"