aboutsummaryrefslogtreecommitdiffstats
path: root/spec/integration/errors_spec.rb
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2014-10-31 15:16:05 +0000
committerLouise Crow <louise.crow@gmail.com>2014-11-18 17:45:50 +0000
commit45f25290e2e4a1f33ec5d3df6ecfb40300318ece (patch)
tree297ab4ab097bdce94908cf13c9ff44e243b5db1c /spec/integration/errors_spec.rb
parentab76e4a18904af104ab532cc273ba15d9bef6f75 (diff)
Use rack-utf8_sanitizer gem
This sanitises non utf-8 params before they're processed by Rails.
Diffstat (limited to 'spec/integration/errors_spec.rb')
-rw-r--r--spec/integration/errors_spec.rb14
1 files changed, 6 insertions, 8 deletions
diff --git a/spec/integration/errors_spec.rb b/spec/integration/errors_spec.rb
index 4fa12fb21..b36e08b2b 100644
--- a/spec/integration/errors_spec.rb
+++ b/spec/integration/errors_spec.rb
@@ -62,14 +62,12 @@ describe "When errors occur" do
response.body.should match(%Q(invalid value for Integer))
end
- # it 'should handle non utf-8 parameters' do
- # pending 'until we sanitize non utf-8 parameters for Ruby >= 1.9' 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
- # end
+ it 'should handle non utf-8 parameters' 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