aboutsummaryrefslogtreecommitdiffstats
path: root/spec/integration/errors_spec.rb
diff options
context:
space:
mode:
authorRobin Houston <robin.houston@gmail.com>2012-01-12 16:42:16 +0000
committerRobin Houston <robin.houston@gmail.com>2012-01-12 16:42:16 +0000
commit734f1142f82549524b467f8247ad3bea9257d5c0 (patch)
tree08ca5316ca0c4f9fd2c53f61fcf1058983437aae /spec/integration/errors_spec.rb
parent883a720e0efbf44e198dffd8efcf65f8d219b08e (diff)
parent0aafbd4a25b5c4c0edbd87c2224dcdd18388ede5 (diff)
Merge branch 'release/0.5' into develop
Diffstat (limited to 'spec/integration/errors_spec.rb')
-rw-r--r--spec/integration/errors_spec.rb8
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