diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2017-01-23 17:06:57 +0100 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2017-01-23 17:06:57 +0100 |
commit | 18417c9ee8b0e0bfa4ee41dd8ada969c0ede07f9 (patch) | |
tree | 3f7811eb4f5b005fcac7e6fdfb4cf0120ae9f2bb /spec | |
parent | 6c65f7a7ce52fadcf53ea2395103de32b0107874 (diff) | |
download | gitlab-ce-18417c9ee8b0e0bfa4ee41dd8ada969c0ede07f9.tar.gz |
Grapify all endpoints of the deploy keys APIgrapify-deploy-keys
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 |