fix(mailers): hardcode default url options host because APP_HOST is not yet migrated

This commit is contained in:
Colin Darie 2024-04-18 18:16:22 +02:00 committed by simon lehericey
parent 69a4ca668b
commit 2f1b1ba5fe
No known key found for this signature in database
GPG key ID: CDE670D827C7B3C5
5 changed files with 8 additions and 8 deletions

View file

@ -57,8 +57,8 @@ RSpec.describe DeviseUserMailer, type: :mailer do
it "respect preferred domain" do
expect(header_value("From", subject.message)).to eq("Ne pas répondre <ne-pas-repondre@demarches.gouv.fr>")
expect(header_value("Reply-To", subject.message)).to eq("Ne pas répondre <ne-pas-repondre@demarches.gouv.fr>")
expect(subject.message.to_s).to include("#{ENV.fetch("APP_HOST")}/users/confirmation")
expect(subject.message.to_s).to include("//#{ENV.fetch("APP_HOST")}/assets/mailer/republique")
expect(subject.message.to_s).to include("demarches.gouv.fr/users/confirmation")
expect(subject.message.to_s).to include("//demarches.gouv.fr/assets/mailer/republique")
end
end
end
@ -78,7 +78,7 @@ RSpec.describe DeviseUserMailer, type: :mailer do
it "respect preferred domain" do
expect(header_value("From", subject.message)).to include("@demarches.gouv.fr")
expect(subject.message.to_s).to include("#{ENV.fetch("APP_HOST")}/users/password")
expect(subject.message.to_s).to include("demarches.gouv.fr/users/password")
end
end
end