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:
taitus
2020-11-10 10:59:51 +01:00
committed by Javi Martín
parent 3ce8fa5b95
commit 1a58fcf2a2
9 changed files with 12 additions and 0 deletions

View File

@@ -56,6 +56,7 @@ describe EmailDigest do
let(:user) { create(:user) }
it "delivers email if notifications pending" do
Setting["org_name"] = "CONSUL"
create(:notification, :for_proposal_notification, user: user)
reset_mailer