summaryrefslogtreecommitdiffstats
path: root/test/integration/routing/users_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/routing/users_test.rb')
-rw-r--r--test/integration/routing/users_test.rb28
1 files changed, 0 insertions, 28 deletions
diff --git a/test/integration/routing/users_test.rb b/test/integration/routing/users_test.rb
index 911c1de99..fad01fbbb 100644
--- a/test/integration/routing/users_test.rb
+++ b/test/integration/routing/users_test.rb
@@ -24,28 +24,14 @@ class RoutingUsersTest < ActionDispatch::IntegrationTest
{ :controller => 'users', :action => 'index' }
)
assert_routing(
- { :method => 'get', :path => "/users.xml" },
- { :controller => 'users', :action => 'index', :format => 'xml' }
- )
- assert_routing(
{ :method => 'get', :path => "/users/44" },
{ :controller => 'users', :action => 'show', :id => '44' }
)
assert_routing(
- { :method => 'get', :path => "/users/44.xml" },
- { :controller => 'users', :action => 'show', :id => '44',
- :format => 'xml' }
- )
- assert_routing(
{ :method => 'get', :path => "/users/current" },
{ :controller => 'users', :action => 'show', :id => 'current' }
)
assert_routing(
- { :method => 'get', :path => "/users/current.xml" },
- { :controller => 'users', :action => 'show', :id => 'current',
- :format => 'xml' }
- )
- assert_routing(
{ :method => 'get', :path => "/users/new" },
{ :controller => 'users', :action => 'new' }
)
@@ -58,26 +44,12 @@ class RoutingUsersTest < ActionDispatch::IntegrationTest
{ :controller => 'users', :action => 'create' }
)
assert_routing(
- { :method => 'post', :path => "/users.xml" },
- { :controller => 'users', :action => 'create', :format => 'xml' }
- )
- assert_routing(
{ :method => 'put', :path => "/users/444" },
{ :controller => 'users', :action => 'update', :id => '444' }
)
assert_routing(
- { :method => 'put', :path => "/users/444.xml" },
- { :controller => 'users', :action => 'update', :id => '444',
- :format => 'xml' }
- )
- assert_routing(
{ :method => 'delete', :path => "/users/44" },
{ :controller => 'users', :action => 'destroy', :id => '44' }
)
- assert_routing(
- { :method => 'delete', :path => "/users/44.xml" },
- { :controller => 'users', :action => 'destroy', :id => '44',
- :format => 'xml' }
- )
end
end