From 914c7c25eb98b5aa039a6fb8ed9cbed95cf44394 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Wed, 10 Jul 2019 15:58:34 +0000 Subject: Add routing spec for deploy_tokens controller Signed-off-by: Dmitriy Zaporozhets --- spec/routing/project_routing_spec.rb | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- cgit v1.2.1