diff options
author | Seb Bacon <seb.bacon@gmail.com> | 2012-06-20 09:17:06 +0100 |
---|---|---|
committer | Seb Bacon <seb.bacon@gmail.com> | 2012-06-20 09:17:06 +0100 |
commit | 58de2af30d7fef731419ab643400f838ede27495 (patch) | |
tree | de26c72f9f6946f035e77e7bc76bee84b522a307 /spec/controllers/request_controller_spec.rb | |
parent | 11bf3cd8519f3b6e4c39548e8449e4ec4170a6d7 (diff) | |
parent | b94559f7966b9db71fae3a9d2bbcac5216712699 (diff) |
Merge branch 'release/0.6' into wdtk
Diffstat (limited to 'spec/controllers/request_controller_spec.rb')
-rw-r--r-- | spec/controllers/request_controller_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/controllers/request_controller_spec.rb b/spec/controllers/request_controller_spec.rb index 28f56dcf6..99ab4cc71 100644 --- a/spec/controllers/request_controller_spec.rb +++ b/spec/controllers/request_controller_spec.rb @@ -1877,7 +1877,7 @@ describe RequestController, "when reporting a request" do info_requests(:badger_request).set_described_state("successful") get :show, :url_title => title response.body.should_not include("This request has been reported") - response.body.should include("The site administrators have reviewed this request") + response.body.should =~ (/the site administrators.*have not hidden it/) end it "should send an email from the reporter to admins" do @@ -1889,6 +1889,7 @@ describe RequestController, "when reporting a request" do mail = deliveries[0] mail.subject.should =~ /attention_requested/ mail.from.should include(@user.email) + mail.body.should include(@user.name) end end |