diff options
author | Douwe Maan <douwe@gitlab.com> | 2016-10-20 11:58:00 +0000 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-10-20 17:16:34 +0200 |
commit | 4303ed620e3fdc64505123e1af1e7bd109d99b9c (patch) | |
tree | 2bc445c35e43884927f37a90d9a986315eef0255 | |
parent | 0e1a948223f60776d796a65e3a59c98f08d6da7b (diff) | |
download | gitlab-ce-4303ed620e3fdc64505123e1af1e7bd109d99b9c.tar.gz |
Merge branch 'fix-label-api-spec' into 'master'
Make label API spec independent of order
See merge request !7013
-rw-r--r-- | spec/requests/api/labels_spec.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/spec/requests/api/labels_spec.rb b/spec/requests/api/labels_spec.rb index 1da9988978b..867bc615b97 100644 --- a/spec/requests/api/labels_spec.rb +++ b/spec/requests/api/labels_spec.rb @@ -22,8 +22,7 @@ describe API::API, api: true do expect(response).to have_http_status(200) expect(json_response).to be_an Array expect(json_response.size).to eq(2) - expect(json_response.first['name']).to eq(group_label.name) - expect(json_response.second['name']).to eq(label1.name) + expect(json_response.map { |l| l['name'] }).to match_array([group_label.name, label1.name]) end end |