diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-11-16 10:54:33 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-11-16 10:54:33 +0000 |
commit | eae9c9ab2be43c64c830a03e414b51a08571c957 (patch) | |
tree | cbe6b20000d60ad854ad8f2e245cbdfeca4b4787 /test/integration/routing/groups_test.rb | |
parent | cd6b2f2268d3e02ae652d3ad37f02170e3647a72 (diff) | |
download | redmine-eae9c9ab2be43c64c830a03e414b51a08571c957.tar.gz redmine-eae9c9ab2be43c64c830a03e414b51a08571c957.zip |
Isolates all API routing tests to a specific test case.
git-svn-id: http://svn.redmine.org/redmine/trunk@13604 e93f8b46-1217-0410-a6f0-8f06a7374b81
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 |