diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2018-08-24 09:37:42 +0200 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2018-08-24 11:40:47 +0200 |
commit | 3b560d04a58151ba5891623db89e31517579a6b6 (patch) | |
tree | dda2aa0b222a30fd156081ac367c7ad130f1a930 | |
parent | 5dac2937945cd3099ddf83ca7771b8f7ec3efac7 (diff) | |
download | gitlab-ce-3b560d04a58151ba5891623db89e31517579a6b6.tar.gz |
POST should be PUT in the API labels specs
-rw-r--r-- | spec/requests/api/labels_spec.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/requests/api/labels_spec.rb b/spec/requests/api/labels_spec.rb index a4220f5b2be..b8a4a04a7e4 100644 --- a/spec/requests/api/labels_spec.rb +++ b/spec/requests/api/labels_spec.rb @@ -306,16 +306,16 @@ describe API::Labels do end it 'returns 400 for too long color code' do - post api("/projects/#{project.id}/labels", user), - name: 'Foo', + put api("/projects/#{project.id}/labels", user), + name: 'label1', color: '#FFAAFFFF' expect(response).to have_gitlab_http_status(400) expect(json_response['message']['color']).to eq(['must be a valid color code']) end it 'returns 400 for invalid priority' do - post api("/projects/#{project.id}/labels", user), - name: 'Foo', + put api("/projects/#{project.id}/labels", user), + name: 'label1', priority: 'foo' expect(response).to have_gitlab_http_status(400) |