aboutsummaryrefslogtreecommitdiffstats
path: root/spec/integration/errors_spec.rb
diff options
context:
space:
mode:
authorRobin Houston <robin.houston@gmail.com>2012-01-17 21:44:41 +0000
committerRobin Houston <robin.houston@gmail.com>2012-01-17 21:44:41 +0000
commit2c97a42455edb338a4ffeb529c9dd08bdf2864e0 (patch)
tree0735d4a36215df79a4c8ec854df3793b5f9cb310 /spec/integration/errors_spec.rb
parente60d21cb129d1de487ebedd6b5e9efb22913130d (diff)
parente190eebf7c4bd6a742706e60f2bf941f70d1a1e4 (diff)
Merge branch 'release/0.5' into develop
Conflicts: lib/alaveteli_external_command.rb
Diffstat (limited to 'spec/integration/errors_spec.rb')
-rw-r--r--spec/integration/errors_spec.rb9
1 files changed, 6 insertions, 3 deletions
diff --git a/spec/integration/errors_spec.rb b/spec/integration/errors_spec.rb
index 705c1fff8..d03323445 100644
--- a/spec/integration/errors_spec.rb
+++ b/spec/integration/errors_spec.rb
@@ -46,10 +46,13 @@ describe "When rendering errors" do
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"
- get("/request/5/response/4/attach/html" )
+ # make a fake cache
+ foi_cache_path = File.join(File.dirname(__FILE__), '../../cache')
+ FileUtils.mkdir_p(File.join(foi_cache_path, "views/en/request/101/101/response/1/attach/html/1"))
+ get("/request/101/response/1/attach/html/1/" )
response.code.should == "403"
+ get("/request/101/response/1/attach/html" )
+ response.code.should == "403"
end
it "should render a 404 for non-existent 'details' pages for requests" do
get("/details/request/wobble" )