diff options
author | Matthew Landauer <matthew@openaustralia.org> | 2012-09-27 15:42:49 +1000 |
---|---|---|
committer | Matthew Landauer <matthew@openaustralia.org> | 2012-09-27 15:44:10 +1000 |
commit | 7a9593a37ee94dc88fb9199d51f4b2e85418ec49 (patch) | |
tree | 507c0d01a3d347ba8b18ff057de7fab201bc61fa /spec/models | |
parent | 49fb299dde57e7db981ef31a7da12c6fd4761b01 (diff) |
Extract method
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/public_body_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/public_body_spec.rb b/spec/models/public_body_spec.rb index ea78e5ec5..c2e0a6353 100644 --- a/spec/models/public_body_spec.rb +++ b/spec/models/public_body_spec.rb @@ -456,7 +456,7 @@ 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", "").and_return("catch_all_test_email@foo.com") + 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 |