mirror of
https://github.com/redmine/redmine.git
synced 2025-11-14 09:16:02 +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:
@@ -47,15 +47,5 @@ class RoutingWatchersTest < ActionDispatch::IntegrationTest
|
||||
{ :method => 'delete', :path => "/watchers/watch" },
|
||||
{ :controller => 'watchers', :action => 'unwatch' }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'post', :path => "/issues/12/watchers.xml" },
|
||||
{ :controller => 'watchers', :action => 'create',
|
||||
:object_type => 'issue', :object_id => '12', :format => 'xml' }
|
||||
)
|
||||
assert_routing(
|
||||
{ :method => 'delete', :path => "/issues/12/watchers/3.xml" },
|
||||
{ :controller => 'watchers', :action => 'destroy',
|
||||
:object_type => 'issue', :object_id => '12', :user_id => '3', :format => 'xml'}
|
||||
)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user