aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller
diff options
context:
space:
mode:
authorkennyj <kennyj@gmail.com>2013-09-19 02:40:03 +0900
committerkennyj <kennyj@gmail.com>2013-09-19 02:43:22 +0900
commit0cc65081200fe93acf0058829bb9dd7c41e59e9d (patch)
treee3d7efcb6d6037f80cd4ac3b5e6b5dcc9e39705a /actionpack/test/controller
parent949c4291a4bffae582dc3987e8f4980ea13a2cff (diff)
downloadrails-0cc65081200fe93acf0058829bb9dd7c41e59e9d.tar.gz
rails-0cc65081200fe93acf0058829bb9dd7c41e59e9d.tar.bz2
rails-0cc65081200fe93acf0058829bb9dd7c41e59e9d.zip
Fix an issue where router can't recognize downcased url encoding path.
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r--actionpack/test/controller/routing_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/test/controller/routing_test.rb b/actionpack/test/controller/routing_test.rb
index f735564305..46df1a7bd5 100644
--- a/actionpack/test/controller/routing_test.rb
+++ b/actionpack/test/controller/routing_test.rb
@@ -1904,6 +1904,10 @@ class RackMountIntegrationTests < ActiveSupport::TestCase
assert_equal({:controller => 'news', :action => 'index'}, @routes.recognize_path(URI.parser.escape('こんにちは/世界'), :method => :get))
end
+ def test_downcased_unicode_path
+ assert_equal({:controller => 'news', :action => 'index'}, @routes.recognize_path(URI.parser.escape('こんにちは/世界').downcase, :method => :get))
+ end
+
private
def sort_extras!(extras)
if extras.length == 2