From b8689c77a49df98802ec04ca60c9602fa092385c Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 27 Jun 2005 15:17:59 +0000 Subject: Don't ignore :controller for urls made inside a controller module #1526 [Nicholas Seckar] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1542 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/test/controller/routing_test.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'actionpack/test/controller') diff --git a/actionpack/test/controller/routing_test.rb b/actionpack/test/controller/routing_test.rb index 923ea7db7c..60481ec9d0 100644 --- a/actionpack/test/controller/routing_test.rb +++ b/actionpack/test/controller/routing_test.rb @@ -667,6 +667,13 @@ class RouteSetTests < Test::Unit::TestCase rs.normal ':controller/:action/:id' end end + + def test_changing_controller + assert_equal ['admin/stuff/show/10', {}], rs.generate( + {:controller => 'stuff', :action => 'show', :id => 10}, + {:controller => 'admin/user', :action => 'index'} + ) + end end end -- cgit v1.2.3