@@ -76,6 +76,11 class Redmine::ApiTest::ApiRoutingTest < Redmine::ApiTest::Routing | |||
|
76 | 76 | should_route 'DELETE /issues/64' => 'issues#destroy', :id => '64' |
|
77 | 77 | end |
|
78 | 78 | |
|
79 | def test_issue_watchers | |
|
80 | should_route 'POST /issues/12/watchers' => 'watchers#create', :object_type => 'issue', :object_id => '12' | |
|
81 | should_route 'DELETE /issues/12/watchers/3' => 'watchers#destroy', :object_type => 'issue', :object_id => '12', :user_id => '3' | |
|
82 | end | |
|
83 | ||
|
79 | 84 | def test_memberships |
|
80 | 85 | should_route 'GET /projects/5234/memberships' => 'members#index', :project_id => '5234' |
|
81 | 86 | should_route 'POST /projects/5234/memberships' => 'members#create', :project_id => '5234' |
@@ -140,11 +145,6 class Redmine::ApiTest::ApiRoutingTest < Redmine::ApiTest::Routing | |||
|
140 | 145 | should_route 'DELETE /versions/1' => 'versions#destroy', :id => '1' |
|
141 | 146 | end |
|
142 | 147 | |
|
143 | def test_watchers | |
|
144 | should_route 'POST /issues/12/watchers' => 'watchers#create', :object_type => 'issue', :object_id => '12' | |
|
145 | should_route 'DELETE /issues/12/watchers/3' => 'watchers#destroy', :object_type => 'issue', :object_id => '12', :user_id => '3' | |
|
146 | end | |
|
147 | ||
|
148 | 148 | def test_wiki |
|
149 | 149 | should_route 'GET /projects/567/wiki/index' => 'wiki#index', :project_id => '567' |
|
150 | 150 |
General Comments 0
You need to be logged in to leave comments.
Login now