diff options
author | Robin Houston <robin.houston@gmail.com> | 2012-01-12 16:42:16 +0000 |
---|---|---|
committer | Robin Houston <robin.houston@gmail.com> | 2012-01-12 16:42:16 +0000 |
commit | 734f1142f82549524b467f8247ad3bea9257d5c0 (patch) | |
tree | 08ca5316ca0c4f9fd2c53f61fcf1058983437aae /spec/integration/errors_spec.rb | |
parent | 883a720e0efbf44e198dffd8efcf65f8d219b08e (diff) | |
parent | 0aafbd4a25b5c4c0edbd87c2224dcdd18388ede5 (diff) |
Merge branch 'release/0.5' into develop
Diffstat (limited to 'spec/integration/errors_spec.rb')
-rw-r--r-- | spec/integration/errors_spec.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/integration/errors_spec.rb b/spec/integration/errors_spec.rb index bfb7e5fb5..8084bb35a 100644 --- a/spec/integration/errors_spec.rb +++ b/spec/integration/errors_spec.rb @@ -45,5 +45,13 @@ describe "When rendering errors" do get("/request/#{ir.url_title}") response.code.should == "500" end + it "should render a 403 for attempts at directory listing for attachments" do + get("/request/5/response/4/attach/html/3/" ) + response.code.should == "403" + end + it "should render a 404 for non-existent 'details' pages for requests" do + get("/details/request/wobble" ) + response.code.should == "404" + end end |