summaryrefslogtreecommitdiffstats
path: root/test/integration/routing/members_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2014-11-16 10:54:33 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2014-11-16 10:54:33 +0000
commiteae9c9ab2be43c64c830a03e414b51a08571c957 (patch)
treecbe6b20000d60ad854ad8f2e245cbdfeca4b4787 /test/integration/routing/members_test.rb
parentcd6b2f2268d3e02ae652d3ad37f02170e3647a72 (diff)
downloadredmine-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/members_test.rb')
-rw-r--r--test/integration/routing/members_test.rb20
1 files changed, 0 insertions, 20 deletions
diff --git a/test/integration/routing/members_test.rb b/test/integration/routing/members_test.rb
index 91a98d401..cb70bd632 100644
--- a/test/integration/routing/members_test.rb
+++ b/test/integration/routing/members_test.rb
@@ -20,22 +20,10 @@ require File.expand_path('../../../test_helper', __FILE__)
class RoutingMembersTest < ActionDispatch::IntegrationTest
def test_members
assert_routing(
- { :method => 'get', :path => "/projects/5234/memberships.xml" },
- { :controller => 'members', :action => 'index', :project_id => '5234', :format => 'xml' }
- )
- assert_routing(
- { :method => 'get', :path => "/memberships/5234.xml" },
- { :controller => 'members', :action => 'show', :id => '5234', :format => 'xml' }
- )
- assert_routing(
{ :method => 'post', :path => "/projects/5234/memberships" },
{ :controller => 'members', :action => 'create', :project_id => '5234' }
)
assert_routing(
- { :method => 'post', :path => "/projects/5234/memberships.xml" },
- { :controller => 'members', :action => 'create', :project_id => '5234', :format => 'xml' }
- )
- assert_routing(
{ :method => 'get', :path => "/projects/5234/memberships/new" },
{ :controller => 'members', :action => 'new', :project_id => '5234' }
)
@@ -44,18 +32,10 @@ class RoutingMembersTest < ActionDispatch::IntegrationTest
{ :controller => 'members', :action => 'update', :id => '5234' }
)
assert_routing(
- { :method => 'put', :path => "/memberships/5234.xml" },
- { :controller => 'members', :action => 'update', :id => '5234', :format => 'xml' }
- )
- assert_routing(
{ :method => 'delete', :path => "/memberships/5234" },
{ :controller => 'members', :action => 'destroy', :id => '5234' }
)
assert_routing(
- { :method => 'delete', :path => "/memberships/5234.xml" },
- { :controller => 'members', :action => 'destroy', :id => '5234', :format => 'xml' }
- )
- assert_routing(
{ :method => 'get', :path => "/projects/5234/memberships/autocomplete" },
{ :controller => 'members', :action => 'autocomplete', :project_id => '5234' }
)