diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2017-02-20 09:33:42 +0100 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2017-02-20 09:33:42 +0100 |
commit | e7551214f33eb722ad48a8749db743a20d5ff17d (patch) | |
tree | e4757761d07c50211a22c8ec2d6ea874a2dfa257 /spec/requests | |
parent | 12cd4c83604e43dc308ba13fa3d5a6571409c1f8 (diff) | |
download | gitlab-ce-e7551214f33eb722ad48a8749db743a20d5ff17d.tar.gz |
API: Remove `DELETE projects/:id/deploy_keys/:key_id/disable`api-remove-deploy-key-disable
Diffstat (limited to 'spec/requests')
-rw-r--r-- | spec/requests/api/deploy_keys_spec.rb | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/spec/requests/api/deploy_keys_spec.rb b/spec/requests/api/deploy_keys_spec.rb index 67039bb037e..7e682e91bd1 100644 --- a/spec/requests/api/deploy_keys_spec.rb +++ b/spec/requests/api/deploy_keys_spec.rb @@ -148,25 +148,4 @@ describe API::DeployKeys, api: true do end end end - - describe 'DELETE /projects/:id/deploy_keys/:key_id/disable' do - context 'when the user can admin the project' do - it 'disables the key' do - expect do - delete api("/projects/#{project.id}/deploy_keys/#{deploy_key.id}/disable", admin) - end.to change { project.deploy_keys.count }.from(1).to(0) - - expect(response).to have_http_status(200) - expect(json_response['id']).to eq(deploy_key.id) - end - end - - context 'when authenticated as non-admin user' do - it 'should return a 404 error' do - delete api("/projects/#{project.id}/deploy_keys/#{deploy_key.id}/disable", user) - - expect(response).to have_http_status(404) - end - end - end end |