aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch/static_test.rb
diff options
context:
space:
mode:
authorMichael Reinsch <michael@mobalean.com>2012-03-08 20:26:10 +0900
committerMichael Reinsch <michael@mobalean.com>2012-03-08 20:44:28 +0900
commit55cac81bc50b7b825e12e1c42edda398094d67ef (patch)
tree5b62e6995b3729dc2b5f670e7d7118a3a3058a5c /actionpack/test/dispatch/static_test.rb
parent9bcd6622dde4896b54fc0e1f843c624771e3e425 (diff)
downloadrails-55cac81bc50b7b825e12e1c42edda398094d67ef.tar.gz
rails-55cac81bc50b7b825e12e1c42edda398094d67ef.tar.bz2
rails-55cac81bc50b7b825e12e1c42edda398094d67ef.zip
fix ArgumentError being raised in case of invalid byte sequences
Diffstat (limited to 'actionpack/test/dispatch/static_test.rb')
-rw-r--r--actionpack/test/dispatch/static_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/test/dispatch/static_test.rb b/actionpack/test/dispatch/static_test.rb
index 949deefa9d..856746c451 100644
--- a/actionpack/test/dispatch/static_test.rb
+++ b/actionpack/test/dispatch/static_test.rb
@@ -6,6 +6,10 @@ module StaticTests
assert_equal "Hello, World!", get("/nofile").body
end
+ def test_handles_urls_with_bad_encoding
+ assert_equal "Hello, World!", get("/doorkeeper%E3E4").body
+ end
+
def test_sets_cache_control
response = get("/index.html")
assert_html "/index.html", response