diff options
author | Robin Houston <robin.houston@gmail.com> | 2012-01-12 17:56:56 +0000 |
---|---|---|
committer | Robin Houston <robin.houston@gmail.com> | 2012-01-12 17:56:56 +0000 |
commit | 5e400fd939091a12515b069d618b9e7b18bb4016 (patch) | |
tree | 6d123ac3565bc5351a7c8fc94819e03460e7e0b9 /spec/integration/errors_spec.rb | |
parent | cb020f57f9cec5610c40bbcb85257776c27642a1 (diff) | |
parent | 0aafbd4a25b5c4c0edbd87c2224dcdd18388ede5 (diff) |
Merge branch 'release/0.5' of https://github.com/sebbacon/alaveteli into release/0.5
Conflicts:
app/controllers/request_controller.rb
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 |