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,16 +24,6 @@ class RoutingIssueCategoriesTest < ActionDispatch::IntegrationTest | ||||
|         { :controller => 'issue_categories', :action => 'index', | ||||
|           :project_id => 'foo' } | ||||
|       ) | ||||
|     assert_routing( | ||||
|         { :method => 'get', :path => "/projects/foo/issue_categories.xml" }, | ||||
|         { :controller => 'issue_categories', :action => 'index', | ||||
|           :project_id => 'foo', :format => 'xml' } | ||||
|       ) | ||||
|     assert_routing( | ||||
|         { :method => 'get', :path => "/projects/foo/issue_categories.json" }, | ||||
|         { :controller => 'issue_categories', :action => 'index', | ||||
|           :project_id => 'foo', :format => 'json' } | ||||
|       ) | ||||
|     assert_routing( | ||||
|         { :method => 'get', :path => "/projects/foo/issue_categories/new" }, | ||||
|         { :controller => 'issue_categories', :action => 'new', | ||||
| @@ -44,16 +34,6 @@ class RoutingIssueCategoriesTest < ActionDispatch::IntegrationTest | ||||
|         { :controller => 'issue_categories', :action => 'create', | ||||
|           :project_id => 'foo' } | ||||
|       ) | ||||
|     assert_routing( | ||||
|         { :method => 'post', :path => "/projects/foo/issue_categories.xml" }, | ||||
|         { :controller => 'issue_categories', :action => 'create', | ||||
|           :project_id => 'foo', :format => 'xml' } | ||||
|       ) | ||||
|     assert_routing( | ||||
|         { :method => 'post', :path => "/projects/foo/issue_categories.json" }, | ||||
|         { :controller => 'issue_categories', :action => 'create', | ||||
|           :project_id => 'foo', :format => 'json' } | ||||
|       ) | ||||
|   end | ||||
|  | ||||
|   def test_issue_categories | ||||
| @@ -61,16 +41,6 @@ class RoutingIssueCategoriesTest < ActionDispatch::IntegrationTest | ||||
|         { :method => 'get', :path => "/issue_categories/1" }, | ||||
|         { :controller => 'issue_categories', :action => 'show', :id => '1' } | ||||
|       ) | ||||
|     assert_routing( | ||||
|         { :method => 'get', :path => "/issue_categories/1.xml" }, | ||||
|         { :controller => 'issue_categories', :action => 'show', :id => '1', | ||||
|           :format => 'xml' } | ||||
|       ) | ||||
|     assert_routing( | ||||
|         { :method => 'get', :path => "/issue_categories/1.json" }, | ||||
|         { :controller => 'issue_categories', :action => 'show', :id => '1', | ||||
|           :format => 'json' } | ||||
|       ) | ||||
|     assert_routing( | ||||
|         { :method => 'get', :path => "/issue_categories/1/edit" }, | ||||
|         { :controller => 'issue_categories', :action => 'edit', :id => '1' } | ||||
| @@ -79,29 +49,9 @@ class RoutingIssueCategoriesTest < ActionDispatch::IntegrationTest | ||||
|         { :method => 'put', :path => "/issue_categories/1" }, | ||||
|         { :controller => 'issue_categories', :action => 'update', :id => '1' } | ||||
|       ) | ||||
|     assert_routing( | ||||
|         { :method => 'put', :path => "/issue_categories/1.xml" }, | ||||
|         { :controller => 'issue_categories', :action => 'update', :id => '1', | ||||
|           :format => 'xml' } | ||||
|       ) | ||||
|     assert_routing( | ||||
|         { :method => 'put', :path => "/issue_categories/1.json" }, | ||||
|         { :controller => 'issue_categories', :action => 'update', :id => '1', | ||||
|           :format => 'json' } | ||||
|       ) | ||||
|     assert_routing( | ||||
|         { :method => 'delete', :path => "/issue_categories/1" }, | ||||
|         { :controller => 'issue_categories', :action => 'destroy', :id => '1' } | ||||
|       ) | ||||
|     assert_routing( | ||||
|         { :method => 'delete', :path => "/issue_categories/1.xml" }, | ||||
|         { :controller => 'issue_categories', :action => 'destroy', :id => '1', | ||||
|           :format => 'xml' } | ||||
|       ) | ||||
|     assert_routing( | ||||
|         { :method => 'delete', :path => "/issue_categories/1.json" }, | ||||
|         { :controller => 'issue_categories', :action => 'destroy', :id => '1', | ||||
|           :format => 'json' } | ||||
|       ) | ||||
|   end | ||||
| end | ||||
|   | ||||
		Reference in New Issue
	
	Block a user