diff options
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/routing_tests.rb | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/actionpack/test/controller/routing_tests.rb b/actionpack/test/controller/routing_tests.rb index f36e395107..a5b6066d66 100644 --- a/actionpack/test/controller/routing_tests.rb +++ b/actionpack/test/controller/routing_tests.rb @@ -329,11 +329,21 @@ class RouteTests < Test::Unit::TestCase def test_path_collection route '*path_info', :controller => 'content', :action => 'fish' verify_recognize'path/with/slashes', - :controller => 'content', :action => 'fish', :path_info => 'path/with/slashes' + :controller => 'content', :action => 'fish', :path_info => %w(path with slashes) verify_generate('path/with/slashes', {}, - {:controller => 'content', :action => 'fish', :path_info => 'path/with/slashes'}, + {:controller => 'content', :action => 'fish', :path_info => 'path/with/slashes'}, {}) end + def test_path_collection_with_array + route '*path_info', :controller => 'content', :action => 'fish' + verify_recognize'path/with/slashes', + :controller => 'content', :action => 'fish', :path_info => %w(path with slashes) + verify_generate('path/with/slashes', {}, + {:controller => 'content', :action => 'fish', :path_info => %w(path with slashes)}, + {}) + end + + def test_special_characters route ':id', :controller => 'content', :action => 'fish' |