diff options
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/dispatch/routing_test.rb | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/actionpack/test/dispatch/routing_test.rb b/actionpack/test/dispatch/routing_test.rb index 952cdb1098..bcd6a5278c 100644 --- a/actionpack/test/dispatch/routing_test.rb +++ b/actionpack/test/dispatch/routing_test.rb @@ -99,6 +99,10 @@ class TestRoutingMapper < ActionDispatch::IntegrationTest namespace :account do resource :subscription, :credit, :credit_card + + namespace :admin do + resource :subscription + end end controller :articles do @@ -445,6 +449,14 @@ class TestRoutingMapper < ActionDispatch::IntegrationTest end end + def test_nested_namespace + with_test_routes do + get '/account/admin/subscription' + assert_equal 'account/admin/subscriptions#show', @response.body + assert_equal '/account/admin/subscription', account_admin_subscription_path + end + end + def test_articles_with_id with_test_routes do get '/articles/rails/1' |