summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2019-07-03 18:32:13 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2019-07-10 14:43:18 +0300
commitb8b678c526c065d8963d5601df4755b5e1a0d2e2 (patch)
treed76c6d3d5dc5366bc0d42e7b38286911fbc4db08
parent5b669c191d766ab980d647107d7c183be5f8f99e (diff)
downloadgitlab-ce-62363-follow-up-from-move-more-project-routes-under-scope.tar.gz
Add routing spec for deploy_tokens controller62363-follow-up-from-move-more-project-routes-under-scope
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..d1ab0384bd0 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 'to #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