summaryrefslogtreecommitdiff
path: root/spec/requests/api
diff options
context:
space:
mode:
authorRobert Schilling <rschilling@student.tugraz.at>2016-10-24 14:05:33 +0200
committerRobert Schilling <rschilling@student.tugraz.at>2016-10-24 16:52:34 +0200
commit21666dbe119df7f2d86f0ac13c4addc814af4485 (patch)
treecc38af339ca1cdd5ea1374dc0012df8c4e3dce48 /spec/requests/api
parent9af0dd5ee467c72d327cc88e081300ee0df5f55b (diff)
downloadgitlab-ce-21666dbe119df7f2d86f0ac13c4addc814af4485.tar.gz
Grapify the labels APIgrapify-labels-api
Diffstat (limited to 'spec/requests/api')
-rw-r--r--spec/requests/api/labels_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/requests/api/labels_spec.rb b/spec/requests/api/labels_spec.rb
index 867bc615b97..46641fcd846 100644
--- a/spec/requests/api/labels_spec.rb
+++ b/spec/requests/api/labels_spec.rb
@@ -159,14 +159,14 @@ describe API::API, api: true do
it 'returns 400 if no label name given' do
put api("/projects/#{project.id}/labels", user), new_name: 'label2'
expect(response).to have_http_status(400)
- expect(json_response['message']).to eq('400 (Bad request) "name" not given')
+ expect(json_response['error']).to eq('name is missing')
end
it 'returns 400 if no new parameters given' do
put api("/projects/#{project.id}/labels", user), name: 'label1'
expect(response).to have_http_status(400)
- expect(json_response['message']).to eq('Required parameters '\
- '"new_name" or "color" missing')
+ expect(json_response['error']).to eq('new_name, color, description are missing, '\
+ 'at least one parameter must be provided')
end
it 'returns 400 for invalid name' do