diff options
author | Robin Houston <robin.houston@gmail.com> | 2012-09-28 14:02:29 +0100 |
---|---|---|
committer | Robin Houston <robin.houston@gmail.com> | 2012-09-28 14:02:29 +0100 |
commit | 7f2b70f09e3e3d8395e0f36fe82e8632b4a9d423 (patch) | |
tree | 98de2a8f73d20bc3c04ea959ca13f67b81ceccd9 /spec/models | |
parent | 74b82e10ba38366a615acd8402dcb5c4e2cb4756 (diff) | |
parent | dff4c6c0ef55a28e303d1e767f92545cb2ad0214 (diff) |
Merge remote-tracking branch 'openaustralia/redirect_email_for_testing' into develop
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/public_body_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/models/public_body_spec.rb b/spec/models/public_body_spec.rb index 011824190..c2e0a6353 100644 --- a/spec/models/public_body_spec.rb +++ b/spec/models/public_body_spec.rb @@ -453,3 +453,11 @@ describe PublicBody do end end + +describe PublicBody, " when override all public body request emails set" do + it "should return the overridden request email" do + MySociety::Config.should_receive(:get).with("OVERRIDE_ALL_PUBLIC_BODY_REQUEST_EMAILS", "").twice.and_return("catch_all_test_email@foo.com") + @geraldine = public_bodies(:geraldine_public_body) + @geraldine.request_email.should == "catch_all_test_email@foo.com" + end +end |