diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2005-06-27 15:17:59 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2005-06-27 15:17:59 +0000 |
commit | b8689c77a49df98802ec04ca60c9602fa092385c (patch) | |
tree | a7a4bd69cecdf3499513141236218d1de1cb97ac /actionpack/test/controller | |
parent | a7116b6534ee192fd3c64ce927bae424acca2a22 (diff) | |
download | rails-b8689c77a49df98802ec04ca60c9602fa092385c.tar.gz rails-b8689c77a49df98802ec04ca60c9602fa092385c.tar.bz2 rails-b8689c77a49df98802ec04ca60c9602fa092385c.zip |
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
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/routing_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
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 |