diff options
author | Louise Crow <louise.crow@gmail.com> | 2014-04-04 10:51:57 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2014-04-04 10:51:57 +0100 |
commit | 637f83a8200024fc7d9f9edbf208b716714db400 (patch) | |
tree | d7f0f4d75035169dda3c0f404411a0c8398cca76 /spec/integration/errors_spec.rb | |
parent | 0b6dc324f305ca22d084cd7429752ff145d9772f (diff) | |
parent | b16bd59bc5a58cebe3f9fbf3d031f813bb720cff (diff) |
Merge branch 'rails-3-develop' of ssh://git.mysociety.org/data/git/public/alaveteli into rails-3-develop
Diffstat (limited to 'spec/integration/errors_spec.rb')
-rw-r--r-- | spec/integration/errors_spec.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/integration/errors_spec.rb b/spec/integration/errors_spec.rb index 17a0153c2..3ff3edb53 100644 --- a/spec/integration/errors_spec.rb +++ b/spec/integration/errors_spec.rb @@ -54,6 +54,13 @@ describe "When errors occur" do end end + it 'should url encode params' do + get ('/%d3') + response.should render_template('general/exception_caught') + response.code.should == '404' + response.body.should match("Sorry, we couldn't find that page") + end + it "should render a 500 for general errors using the general/exception_caught template" do InfoRequest.stub!(:find_by_url_title!).and_raise("An example error") get("/request/example") |