From 453ed1539500f3dc9f704bb0933f50cc42bbe46a Mon Sep 17 00:00:00 2001 From: Jamis Buck Date: Tue, 28 Jun 2005 21:18:04 +0000 Subject: Routes fail with leading slash #1540 [Nicholas Seckar] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1555 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/test/controller/routing_test.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'actionpack/test/controller/routing_test.rb') diff --git a/actionpack/test/controller/routing_test.rb b/actionpack/test/controller/routing_test.rb index 60481ec9d0..d7b10f69d9 100644 --- a/actionpack/test/controller/routing_test.rb +++ b/actionpack/test/controller/routing_test.rb @@ -574,6 +574,11 @@ class RouteSetTests < Test::Unit::TestCase assert_equal ['admin/user/show', {}], rs.generate({:action => 'show'}, {:controller => 'admin/user', :action => 'list', :id => '10'}) assert_equal ['admin/user/list/10', {}], rs.generate({}, {:controller => 'admin/user', :action => 'list', :id => '10'}) end + + def test_ignores_leading_slash + @rs.draw {|m| m.connect '/:controller/:action/:id'} + test_default_setup + end def test_time_recognition n = 10000 -- cgit v1.2.3