From 7d5fbf846b432821d0179553fa902d2de9372172 Mon Sep 17 00:00:00 2001 From: Michael Reinsch Date: Thu, 8 Mar 2012 20:26:10 +0900 Subject: fix ArgumentError being raised in case of invalid byte sequences --- actionpack/test/dispatch/static_test.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'actionpack/test') diff --git a/actionpack/test/dispatch/static_test.rb b/actionpack/test/dispatch/static_test.rb index 092ca3e20a..112f470786 100644 --- a/actionpack/test/dispatch/static_test.rb +++ b/actionpack/test/dispatch/static_test.rb @@ -7,6 +7,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 -- cgit v1.2.3