diff options
author | Nicholas Seckar <nseckar@gmail.com> | 2007-05-12 04:46:17 +0000 |
---|---|---|
committer | Nicholas Seckar <nseckar@gmail.com> | 2007-05-12 04:46:17 +0000 |
commit | 2ca6f57f85fe06932f64685bea2687fec7d6c3d3 (patch) | |
tree | b5a1dd132ab3a50e22d493ae83cd236dd204afba /actionpack | |
parent | a5fe13e871506e242071a6b0d0d96d1d9a78469a (diff) | |
download | rails-2ca6f57f85fe06932f64685bea2687fec7d6c3d3.tar.gz rails-2ca6f57f85fe06932f64685bea2687fec7d6c3d3.tar.bz2 rails-2ca6f57f85fe06932f64685bea2687fec7d6c3d3.zip |
Add broken test
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6724 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/test/controller/routing_test.rb | 5 |
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_ |