diff options
Diffstat (limited to 'test/integration/routing/groups_test.rb')
-rw-r--r-- | test/integration/routing/groups_test.rb | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/test/integration/routing/groups_test.rb b/test/integration/routing/groups_test.rb index 4171a0e25..243046c74 100644 --- a/test/integration/routing/groups_test.rb +++ b/test/integration/routing/groups_test.rb @@ -24,18 +24,10 @@ class RoutingGroupsTest < ActionDispatch::IntegrationTest { :controller => 'groups', :action => 'index' } ) assert_routing( - { :method => 'get', :path => "/groups.xml" }, - { :controller => 'groups', :action => 'index', :format => 'xml' } - ) - assert_routing( { :method => 'post', :path => "/groups" }, { :controller => 'groups', :action => 'create' } ) assert_routing( - { :method => 'post', :path => "/groups.xml" }, - { :controller => 'groups', :action => 'create', :format => 'xml' } - ) - assert_routing( { :method => 'get', :path => "/groups/new" }, { :controller => 'groups', :action => 'new' } ) @@ -56,25 +48,13 @@ class RoutingGroupsTest < ActionDispatch::IntegrationTest { :controller => 'groups', :action => 'show', :id => '1' } ) assert_routing( - { :method => 'get', :path => "/groups/1.xml" }, - { :controller => 'groups', :action => 'show', :id => '1', :format => 'xml' } - ) - assert_routing( { :method => 'put', :path => "/groups/1" }, { :controller => 'groups', :action => 'update', :id => '1' } ) assert_routing( - { :method => 'put', :path => "/groups/1.xml" }, - { :controller => 'groups', :action => 'update', :id => '1', :format => 'xml' } - ) - assert_routing( { :method => 'delete', :path => "/groups/1" }, { :controller => 'groups', :action => 'destroy', :id => '1' } ) - assert_routing( - { :method => 'delete', :path => "/groups/1.xml" }, - { :controller => 'groups', :action => 'destroy', :id => '1', :format => 'xml' } - ) end def test_groups @@ -87,16 +67,8 @@ class RoutingGroupsTest < ActionDispatch::IntegrationTest { :controller => 'groups', :action => 'add_users', :id => '567' } ) assert_routing( - { :method => 'post', :path => "/groups/567/users.xml" }, - { :controller => 'groups', :action => 'add_users', :id => '567', :format => 'xml' } - ) - assert_routing( { :method => 'delete', :path => "/groups/567/users/12" }, { :controller => 'groups', :action => 'remove_user', :id => '567', :user_id => '12' } ) - assert_routing( - { :method => 'delete', :path => "/groups/567/users/12.xml" }, - { :controller => 'groups', :action => 'remove_user', :id => '567', :user_id => '12', :format => 'xml' } - ) end end |