diff options
author | Rémy Coutable <remy@rymai.me> | 2018-08-24 16:59:00 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2018-08-24 16:59:00 +0000 |
commit | 1887bc4a5e154a8492cb6e535de233ab5f8e29dc (patch) | |
tree | 809f4b64ce631e2dc435a0825e7e4f3d9acb818b /spec | |
parent | 5846c02dea6f57c1e4fb2a05ba1251177a6856f2 (diff) | |
parent | 3b560d04a58151ba5891623db89e31517579a6b6 (diff) | |
download | gitlab-ce-1887bc4a5e154a8492cb6e535de233ab5f8e29dc.tar.gz |
Merge branch 'api-labels-spec' into 'master'
POST should be PUT in the API labels specs
See merge request gitlab-org/gitlab-ce!21369
Diffstat (limited to 'spec')
-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) |