summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2019-07-10 15:58:34 +0000
committerLin Jen-Shin <godfat@godfat.org>2019-07-10 15:58:34 +0000
commit914c7c25eb98b5aa039a6fb8ed9cbed95cf44394 (patch)
treea3d06b372784687856489f70ec02e765aab01861
parent2d9cd76f4f7319a9f4cafc5a01e6b5f29d3cb1fc (diff)
downloadgitlab-ce-914c7c25eb98b5aa039a6fb8ed9cbed95cf44394.tar.gz
Add routing spec for deploy_tokens controller
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-rw-r--r--spec/routing/project_routing_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/routing/project_routing_spec.rb b/spec/routing/project_routing_spec.rb
index 6dde40d1cb6..8a3de2a52fc 100644
--- a/spec/routing/project_routing_spec.rb
+++ b/spec/routing/project_routing_spec.rb
@@ -713,4 +713,10 @@ describe 'project routing' do
end
end
end
+
+ describe Projects::DeployTokensController, 'routing' do
+ it 'routes to deploy_tokens#revoke' do
+ expect(put("/gitlab/gitlabhq/-/deploy_tokens/1/revoke")).to route_to("projects/deploy_tokens#revoke", namespace_id: 'gitlab', project_id: 'gitlabhq', id: '1')
+ end
+ end
end