diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2019-07-10 15:58:34 +0000 |
---|---|---|
committer | Lin Jen-Shin <godfat@godfat.org> | 2019-07-10 15:58:34 +0000 |
commit | 914c7c25eb98b5aa039a6fb8ed9cbed95cf44394 (patch) | |
tree | a3d06b372784687856489f70ec02e765aab01861 | |
parent | 2d9cd76f4f7319a9f4cafc5a01e6b5f29d3cb1fc (diff) | |
download | gitlab-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.rb | 6 |
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 |