Merge branch '62363-follow-up-from-move-more-project-routes-under-scope' into 'master'

Add controller spec for deploy tokens

Closes #62363

See merge request gitlab-org/gitlab-ce!30311
This commit is contained in:
Lin Jen-Shin 2019-07-10 15:58:35 +00:00
commit 1dcb9b7d32

View file

@ -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