From 37a46151ec14ae11f5306d997b822f30be7a69d3 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 20 Mar 2005 14:04:33 +0000 Subject: Added path collection syntax for Routes that will gobble up the rest of the url and pass it on to the controller #830 [rayners] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@927 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/test/controller/routing_tests.rb | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'actionpack/test/controller/routing_tests.rb') diff --git a/actionpack/test/controller/routing_tests.rb b/actionpack/test/controller/routing_tests.rb index d4f954e590..744ccb1093 100644 --- a/actionpack/test/controller/routing_tests.rb +++ b/actionpack/test/controller/routing_tests.rb @@ -325,6 +325,15 @@ class RouteTests < Test::Unit::TestCase assert_equal Controllers::Admin::UserController, controller assert_equal %w{action id}, leftovers end + + 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' + verify_generate('path/with/slashes', {}, + {:controller => 'content', :action => 'fish', :path_info => 'path/with/slashes'}, + {}) + end def test_special_characters route ':id', :controller => 'content', :action => 'fish' -- cgit v1.2.3