Make tests independent on mailer settings
So tests won't fail when institutions change these default settings.
This commit is contained in:
@@ -48,6 +48,11 @@ describe "Dashboards Rake" do
|
||||
let!(:action) { create(:dashboard_action, :proposed_action, :active, day_offset: 0) }
|
||||
let!(:resource) { create(:dashboard_action, :resource, :active, day_offset: 0) }
|
||||
|
||||
before do
|
||||
Setting["mailer_from_name"] = "CONSUL"
|
||||
Setting["mailer_from_address"] = "noreply@consul.dev"
|
||||
end
|
||||
|
||||
it " when there are news actions actived for published proposals" do
|
||||
proposal = create(:proposal)
|
||||
action.update!(published_proposal: true)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user