aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller/routing_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/test/controller/routing_test.rb')
-rw-r--r--actionpack/test/controller/routing_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/test/controller/routing_test.rb b/actionpack/test/controller/routing_test.rb
index 658059cefe..9c46f23609 100644
--- a/actionpack/test/controller/routing_test.rb
+++ b/actionpack/test/controller/routing_test.rb
@@ -923,6 +923,11 @@ class RouteTest < Test::Unit::TestCase
o = {:controller => 'accounts', :action => 'list_all'}
assert_equal '/accounts/list_all', default_route.generate(o, o, {})
end
+
+ def test_default_route_should_escape_pluses_in_id
+ expected = {:controller => 'accounts', :action => 'show', :id => 'hello world'}
+ assert_equal expected, default_route.recognize('/accounts/show/hello+world')
+ end
def test_matches_controller_and_action
# requirement_for should only be called for the action and controller _once_