diff options
author | Rémy Coutable <remy@rymai.me> | 2017-01-24 12:45:09 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-01-24 12:45:09 +0000 |
commit | 01fa19edfe2646ad904db6ff50047c2eab61e9d9 (patch) | |
tree | 2ca20e8f95240ab62c1196192813db8b1865a6d0 /spec | |
parent | fe0dbf61c1cefa02bd1db0ec087aef030f150f2d (diff) | |
parent | 18417c9ee8b0e0bfa4ee41dd8ada969c0ede07f9 (diff) | |
download | gitlab-ce-01fa19edfe2646ad904db6ff50047c2eab61e9d9.tar.gz |
Merge branch 'grapify-deploy-keys' into 'master'
Grapify all endpoints of the deploy keys API
See merge request !8721
Diffstat (limited to 'spec')
-rw-r--r-- | spec/requests/api/deploy_keys_spec.rb | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/spec/requests/api/deploy_keys_spec.rb b/spec/requests/api/deploy_keys_spec.rb index 5c14db067a8..766234d7104 100644 --- a/spec/requests/api/deploy_keys_spec.rb +++ b/spec/requests/api/deploy_keys_spec.rb @@ -73,19 +73,14 @@ describe API::DeployKeys, api: true do post api("/projects/#{project.id}/deploy_keys", admin), { title: 'invalid key' } expect(response).to have_http_status(400) - expect(json_response['message']['key']).to eq([ - 'can\'t be blank', - 'is invalid' - ]) + expect(json_response['error']).to eq('key is missing') end it 'should not create a key without title' do post api("/projects/#{project.id}/deploy_keys", admin), key: 'some key' expect(response).to have_http_status(400) - expect(json_response['message']['title']).to eq([ - 'can\'t be blank' - ]) + expect(json_response['error']).to eq('title is missing') end it 'should create new ssh key' do |