[#325] Make the notification layout inherit from the general layout
This commit is contained in:
parent
d80bf601e1
commit
a1a11adb83
2 changed files with 8 additions and 11 deletions
|
@ -1,10 +1,7 @@
|
|||
= yield
|
||||
- content_for :footer do
|
||||
%strong
|
||||
Merci de ne pas répondre à cet email. Pour vous adresser à votre administration, passez directement par votre
|
||||
= succeed '.' do
|
||||
= link_to 'messagerie', messagerie_dossier_url(@dossier), target: '_blank'
|
||||
|
||||
%footer
|
||||
%p
|
||||
—
|
||||
%br
|
||||
%strong
|
||||
Merci de ne pas répondre à cet email. Pour vous adresser à votre administration, passez directement par votre
|
||||
= succeed '.' do
|
||||
= link_to 'messagerie', messagerie_dossier_url(@dossier), target: '_blank'
|
||||
= render template: 'layouts/mailers/layout'
|
||||
|
|
|
@ -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_link('messagerie') }
|
||||
|
||||
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_link('messagerie')
|
||||
end
|
||||
|
||||
it_behaves_like "create a commentaire not notified"
|
||||
|
|
Loading…
Reference in a new issue