diff options
author | José Valim <jose.valim@gmail.com> | 2010-01-06 09:51:46 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-01-06 09:51:46 +0100 |
commit | 0d5ce7c52555c859ca5d6fb10abb4f6424d785c7 (patch) | |
tree | ce9901581a0654b6889b612ae1e58c8f14bbc5e0 /actionpack/test/dispatch/routing_test.rb | |
parent | e4099c2ad3aa82061c8766dc3781fcd2923289e5 (diff) | |
download | rails-0d5ce7c52555c859ca5d6fb10abb4f6424d785c7.tar.gz rails-0d5ce7c52555c859ca5d6fb10abb4f6424d785c7.tar.bz2 rails-0d5ce7c52555c859ca5d6fb10abb4f6424d785c7.zip |
namespace in routes changes both the path and name prefix.
Diffstat (limited to 'actionpack/test/dispatch/routing_test.rb')
-rw-r--r-- | actionpack/test/dispatch/routing_test.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/actionpack/test/dispatch/routing_test.rb b/actionpack/test/dispatch/routing_test.rb index a746c7e2ed..32e2717789 100644 --- a/actionpack/test/dispatch/routing_test.rb +++ b/actionpack/test/dispatch/routing_test.rb @@ -66,7 +66,7 @@ class TestRoutingMapper < ActionDispatch::IntegrationTest resources :people do nested do - namespace ":access_token" do + scope "/:access_token" do resource :avatar end end @@ -433,12 +433,15 @@ class TestRoutingMapper < ActionDispatch::IntegrationTest with_test_routes do get '/account/subscription' assert_equal 'subscriptions#show', @response.body + assert_equal '/account/subscription', account_subscription_path get '/account/credit' assert_equal 'credits#show', @response.body + assert_equal '/account/credit', account_credit_path get '/account/credit_card' assert_equal 'credit_cards#show', @response.body + assert_equal '/account/credit_card', account_credit_card_path end end |