fix(mailer): hardcoded application name
This commit is contained in:
parent
0d744a0eb7
commit
327ebf106f
3 changed files with 3 additions and 3 deletions
|
@ -94,7 +94,7 @@ class UserMailer < ApplicationMailer
|
|||
|
||||
def notify_after_closing(user, content, procedure = nil)
|
||||
@user = user
|
||||
@subject = "Clôture d'une démarche sur Démarches simplifiées"
|
||||
@subject = "Clôture d'une démarche sur #{Current.application_name}"
|
||||
@procedure = procedure
|
||||
@content = content
|
||||
|
||||
|
|
|
@ -34,7 +34,7 @@ class UserMailerPreview < ActionMailer::Preview
|
|||
end
|
||||
|
||||
def notify_after_closing
|
||||
UserMailer.notify_after_closing([user])
|
||||
UserMailer.notify_after_closing(user, "Cette démarche est close")
|
||||
end
|
||||
|
||||
private
|
||||
|
|
|
@ -156,7 +156,7 @@ RSpec.describe UserMailer, type: :mailer do
|
|||
|
||||
it 'notifies user about procedure closing with detailed message' do
|
||||
expect(subject.to).to eq([user.email])
|
||||
expect(subject.body).to include("Clôture d'une démarche sur Démarches simplifiées")
|
||||
expect(subject.body).to include("Clôture d'une démarche sur demarches-simplifiees.fr")
|
||||
expect(subject.body).to include("Bonjour,\r\n<br />saut de ligne")
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue