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:
		| @@ -23,14 +23,6 @@ class RoutingAttachmentsTest < ActionDispatch::IntegrationTest | ||||
|            { :method => 'get', :path => "/attachments/1" }, | ||||
|            { :controller => 'attachments', :action => 'show', :id => '1' } | ||||
|          ) | ||||
|     assert_routing( | ||||
|            { :method => 'get', :path => "/attachments/1.xml" }, | ||||
|            { :controller => 'attachments', :action => 'show', :id => '1', :format => 'xml' } | ||||
|          ) | ||||
|     assert_routing( | ||||
|            { :method => 'get', :path => "/attachments/1.json" }, | ||||
|            { :controller => 'attachments', :action => 'show', :id => '1', :format => 'json' } | ||||
|          ) | ||||
|     assert_routing( | ||||
|            { :method => 'get', :path => "/attachments/1/filename.ext" }, | ||||
|            { :controller => 'attachments', :action => 'show', :id => '1', | ||||
| @@ -57,13 +49,5 @@ class RoutingAttachmentsTest < ActionDispatch::IntegrationTest | ||||
|            { :method => 'delete', :path => "/attachments/1" }, | ||||
|            { :controller => 'attachments', :action => 'destroy', :id => '1' } | ||||
|          ) | ||||
|     assert_routing( | ||||
|            { :method => 'post', :path => '/uploads.xml' }, | ||||
|            { :controller => 'attachments', :action => 'upload', :format => 'xml' } | ||||
|     ) | ||||
|     assert_routing( | ||||
|            { :method => 'post', :path => '/uploads.json' }, | ||||
|            { :controller => 'attachments', :action => 'upload', :format => 'json' } | ||||
|     ) | ||||
|   end | ||||
| end | ||||
|   | ||||
		Reference in New Issue
	
	Block a user