Allow more flexible host/port treatment with LOCAL_DOMAIN values in tests (#35040)

This commit is contained in:
Matt Jankowski
2025-06-16 09:12:23 -04:00
committed by GitHub
parent b2506478ba
commit ca3cc36549
9 changed files with 32 additions and 12 deletions

View File

@@ -326,7 +326,7 @@ RSpec.describe UserMailer do
expect(mail)
.to be_present
.and(have_subject(I18n.t('user_mailer.announcement_published.subject')))
.and(have_body_text(I18n.t('user_mailer.announcement_published.description', domain: Rails.configuration.x.local_domain)))
.and(have_body_text(I18n.t('user_mailer.announcement_published.description', domain: local_domain_uri.host)))
end
end
end