Make tests independent of Setting["org_name"]
So tests won't fail when an institution changes the default organization name. The tests are also easier to understand now, since it's more obvious where the "CONSUL" text is coming from.
This commit is contained in:
@@ -165,6 +165,7 @@ describe Dashboard::Mailer do
|
||||
end
|
||||
|
||||
it "sends emails if new actions detected when creating a proposal" do
|
||||
Setting["org_name"] = "CONSUL"
|
||||
action.update!(published_proposal: false)
|
||||
resource.update!(published_proposal: false)
|
||||
proposal.save!
|
||||
|
||||
Reference in New Issue
Block a user