mirror of
				https://github.com/redmine/redmine.git
				synced 2025-10-31 18:36:07 +01:00 
			
		
		
		
	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
This commit is contained in:
		| @@ -24,58 +24,18 @@ class RoutingIssueRelationsTest < ActionDispatch::IntegrationTest | ||||
|         { :controller => 'issue_relations', :action => 'index', | ||||
|           :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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user