Make tests independent on mailer settings

So tests won't fail when institutions change these default settings.
This commit is contained in:
Javi Martín
2020-12-13 15:10:06 +01:00
parent 1a58fcf2a2
commit df280ffbfe
2 changed files with 7 additions and 0 deletions

View File

@@ -11,6 +11,8 @@ describe Dashboard::Mailer do
before do
Setting["feature.dashboard.notification_emails"] = true
Setting["mailer_from_name"] = "CONSUL"
Setting["mailer_from_address"] = "noreply@consul.dev"
end
describe "#forward" do