aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch/routing_test.rb
diff options
context:
space:
mode:
authorkennyj <kennyj@gmail.com>2012-06-06 00:59:01 +0900
committerkennyj <kennyj@gmail.com>2012-06-16 00:22:16 +0900
commitc42a7a0082a16b47b6bb6d1b919a4b5ec6e7860d (patch)
tree2daff0c583cedf45ef5d8dc7da23ac8582147c63 /actionpack/test/dispatch/routing_test.rb
parentc1b1956a15d3d38d0a4504e168bb69638d71e536 (diff)
downloadrails-c42a7a0082a16b47b6bb6d1b919a4b5ec6e7860d.tar.gz
rails-c42a7a0082a16b47b6bb6d1b919a4b5ec6e7860d.tar.bz2
rails-c42a7a0082a16b47b6bb6d1b919a4b5ec6e7860d.zip
Support unicode character route in config/routes.rb.
Diffstat (limited to 'actionpack/test/dispatch/routing_test.rb')
-rw-r--r--actionpack/test/dispatch/routing_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/dispatch/routing_test.rb b/actionpack/test/dispatch/routing_test.rb
index fa4cb301eb..f15dd7214b 100644
--- a/actionpack/test/dispatch/routing_test.rb
+++ b/actionpack/test/dispatch/routing_test.rb
@@ -2472,7 +2472,7 @@ end
class TestUnicodePaths < ActionDispatch::IntegrationTest
Routes = ActionDispatch::Routing::RouteSet.new.tap do |app|
app.draw do
- get "/#{Rack::Utils.escape("ほげ")}" => lambda { |env|
+ get "/ほげ" => lambda { |env|
[200, { 'Content-Type' => 'text/plain' }, []]
}, :as => :unicode_path
end
@@ -2727,4 +2727,4 @@ class TestInvalidUrls < ActionDispatch::IntegrationTest
assert_response :bad_request
end
end
-end \ No newline at end of file
+end