summaryrefslogtreecommitdiffstats
path: root/test/integration/routing/issue_relations_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/issue_relations_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/issue_relations_test.rb')
-rw-r--r--test/integration/routing/issue_relations_test.rb40
1 files changed, 0 insertions, 40 deletions
diff --git a/test/integration/routing/issue_relations_test.rb b/test/integration/routing/issue_relations_test.rb
index a9bcbf601..502dfbd79 100644
--- a/test/integration/routing/issue_relations_test.rb
+++ b/test/integration/routing/issue_relations_test.rb
@@ -25,57 +25,17 @@ class RoutingIssueRelationsTest < ActionDispatch::IntegrationTest
:issue_id => '1' }
)
assert_routing(
- { :method => 'get', :path => "/issues/1/relations.xml" },
- { :controller => 'issue_relations', :action => 'index',
- :issue_id => '1', :format => 'xml' }
- )
- assert_routing(
- { :method => 'get', :path => "/issues/1/relations.json" },
- { :controller => 'issue_relations', :action => 'index',
- :issue_id => '1', :format => 'json' }
- )
- assert_routing(
{ :method => 'post', :path => "/issues/1/relations" },
{ :controller => 'issue_relations', :action => 'create',
:issue_id => '1' }
)
assert_routing(
- { :method => 'post', :path => "/issues/1/relations.xml" },
- { :controller => 'issue_relations', :action => 'create',
- :issue_id => '1', :format => 'xml' }
- )
- assert_routing(
- { :method => 'post', :path => "/issues/1/relations.json" },
- { :controller => 'issue_relations', :action => 'create',
- :issue_id => '1', :format => 'json' }
- )
- assert_routing(
{ :method => 'get', :path => "/relations/23" },
{ :controller => 'issue_relations', :action => 'show', :id => '23' }
)
assert_routing(
- { :method => 'get', :path => "/relations/23.xml" },
- { :controller => 'issue_relations', :action => 'show', :id => '23',
- :format => 'xml' }
- )
- assert_routing(
- { :method => 'get', :path => "/relations/23.json" },
- { :controller => 'issue_relations', :action => 'show', :id => '23',
- :format => 'json' }
- )
- assert_routing(
{ :method => 'delete', :path => "/relations/23" },
{ :controller => 'issue_relations', :action => 'destroy', :id => '23' }
)
- assert_routing(
- { :method => 'delete', :path => "/relations/23.xml" },
- { :controller => 'issue_relations', :action => 'destroy', :id => '23',
- :format => 'xml' }
- )
- assert_routing(
- { :method => 'delete', :path => "/relations/23.json" },
- { :controller => 'issue_relations', :action => 'destroy', :id => '23',
- :format => 'json' }
- )
end
end