diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2010-04-09 23:09:15 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-04-09 23:09:15 -0700 |
commit | 7353fc15957aa3b32eae8cf495701a7163cf8dbc (patch) | |
tree | 5e312a5f685b5ad5628e84ddf137a6a3af7cacb7 /actionpack/test | |
parent | 561d9eff0c5702c449a2a0117ad9950ad8842dc2 (diff) | |
download | rails-7353fc15957aa3b32eae8cf495701a7163cf8dbc.tar.gz rails-7353fc15957aa3b32eae8cf495701a7163cf8dbc.tar.bz2 rails-7353fc15957aa3b32eae8cf495701a7163cf8dbc.zip |
Dial back from 'namespace :controller => ...' to 'scope :module => ...'
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/dispatch/routing_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/test/dispatch/routing_test.rb b/actionpack/test/dispatch/routing_test.rb index 38341b5d8c..d38c48bfd4 100644 --- a/actionpack/test/dispatch/routing_test.rb +++ b/actionpack/test/dispatch/routing_test.rb @@ -187,11 +187,11 @@ class TestRoutingMapper < ActionDispatch::IntegrationTest resource :dashboard, :constraints => { :ip => /192\.168\.1\.\d{1,3}/ } - namespace :controller => :api do + scope :module => 'api' do resource :token end - namespace :path => :api do + scope :path => 'api' do resource :me match '/' => 'mes#index' end @@ -951,7 +951,7 @@ class TestRoutingMapper < ActionDispatch::IntegrationTest end end - def test_controller_namespace + def test_module_scope with_test_routes do get '/token' assert_equal 'api/tokens#show', @response.body @@ -959,7 +959,7 @@ class TestRoutingMapper < ActionDispatch::IntegrationTest end end - def test_path_namespace + def test_path_scope with_test_routes do get '/api/me' assert_equal 'mes#show', @response.body |