aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/dispatch/routing_test.rb
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2010-04-09 23:09:15 -0700
committerJeremy Kemper <jeremy@bitsweat.net>2010-04-09 23:09:15 -0700
commit7353fc15957aa3b32eae8cf495701a7163cf8dbc (patch)
tree5e312a5f685b5ad5628e84ddf137a6a3af7cacb7 /actionpack/test/dispatch/routing_test.rb
parent561d9eff0c5702c449a2a0117ad9950ad8842dc2 (diff)
downloadrails-7353fc15957aa3b32eae8cf495701a7163cf8dbc.tar.gz
rails-7353fc15957aa3b32eae8cf495701a7163cf8dbc.tar.bz2
rails-7353fc15957aa3b32eae8cf495701a7163cf8dbc.zip
Dial back from 'namespace :controller => ...' to 'scope :module => ...'
Diffstat (limited to 'actionpack/test/dispatch/routing_test.rb')
-rw-r--r--actionpack/test/dispatch/routing_test.rb8
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