summaryrefslogtreecommitdiffstats
path: root/test/integration/api_test
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2021-03-26 04:37:14 +0000
committerGo MAEDA <maeda@farend.jp>2021-03-26 04:37:14 +0000
commita4ee2963fbd509b7e16c8fce663d1b2bd63024d9 (patch)
treed3a5ccb39f5d88342d87231a5ec8acfe99179474 /test/integration/api_test
parent919c9cfdd0a58491b248e28ff521911a1b383089 (diff)
downloadredmine-a4ee2963fbd509b7e16c8fce663d1b2bd63024d9.tar.gz
redmine-a4ee2963fbd509b7e16c8fce663d1b2bd63024d9.zip
Associated Revision API (#22008).
Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@20852 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/integration/api_test')
-rw-r--r--test/integration/api_test/api_routing_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/integration/api_test/api_routing_test.rb b/test/integration/api_test/api_routing_test.rb
index 9c5da6adf..5e2b6d85a 100644
--- a/test/integration/api_test/api_routing_test.rb
+++ b/test/integration/api_test/api_routing_test.rb
@@ -117,6 +117,11 @@ class Redmine::ApiTest::ApiRoutingTest < Redmine::ApiTest::Routing
should_route 'GET /queries' => 'queries#index'
end
+ def test_repositories
+ should_route 'POST /projects/1/repository/2/revisions/3/issues' => 'repositories#add_related_issue', :id => '1', :repository_id => '2', :rev => '3'
+ should_route 'DELETE /projects/1/repository/2/revisions/3/issues/4' => 'repositories#remove_related_issue', :id => '1', :repository_id => '2', :rev => '3', :issue_id => '4'
+ end
+
def test_roles
should_route 'GET /roles' => 'roles#index'
should_route 'GET /roles/2' => 'roles#show', :id => '2'