From b7889524bfe861e38aa7f384ed116f2b15068fe1 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Thu, 24 Feb 2005 01:38:10 +0000 Subject: Fix empty url_for with nested modules #707 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@782 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/test/controller/routing_tests.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'actionpack/test') diff --git a/actionpack/test/controller/routing_tests.rb b/actionpack/test/controller/routing_tests.rb index 69fe6e2b2a..f1a3254a42 100644 --- a/actionpack/test/controller/routing_tests.rb +++ b/actionpack/test/controller/routing_tests.rb @@ -474,6 +474,11 @@ class RouteSetTests < Test::Unit::TestCase @request.path_parameters = {:controller => 'content', :action => 'action', :id => '10'} verify_generate 'content/action', {:id => nil} end + + def test_url_to_self + @request.path_parameters = {:controller => 'admin/users', :action => 'index'} + verify_generate 'admin/users', {} + end end #require '../assertions/action_pack_assertions.rb' -- cgit v1.2.3