aboutsummaryrefslogtreecommitdiffstats
path: root/spec/models
diff options
context:
space:
mode:
authorHenare Degan <henare.degan@gmail.com>2015-04-21 16:38:56 +1000
committerHenare Degan <henare.degan@gmail.com>2015-04-21 16:38:56 +1000
commit1ad88a5c0d274dad87cf28d952f2f96d114be783 (patch)
treec3245875ddaeb1a013e618e23ed10b8352c3e6e0 /spec/models
parent177c3c13b7eb3e34d78795f030ae7f352d3bd621 (diff)
Change PublicBody behaviour to not override blank request emails
This is so if you're overriding the request email you can still observe how Alaveteli behaves when there's no request email set.
Diffstat (limited to 'spec/models')
-rw-r--r--spec/models/public_body_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/public_body_spec.rb b/spec/models/public_body_spec.rb
index 07c9b860b..cce017424 100644
--- a/spec/models/public_body_spec.rb
+++ b/spec/models/public_body_spec.rb
@@ -1258,9 +1258,9 @@ describe PublicBody do
expect(public_body.request_email).to be_blank
end
- it "should return a different email address when overridden in configuration" do
+ it "should still return a blank email address when overridden in configuration" do
AlaveteliConfiguration.stub!(:override_all_public_body_request_emails).and_return("tester@example.com")
- expect(public_body.request_email).to eq("tester@example.com")
+ expect(public_body.request_email).to be_blank
end
end
end