diff options
author | Rémy Coutable <remy@rymai.me> | 2016-11-09 19:21:52 +0100 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2016-11-09 19:50:32 +0100 |
commit | bf39c4bcdf64b656323a07e2f26079148f3a43c3 (patch) | |
tree | 69b41c879842914b369b5aae2d042a0603d1817f | |
parent | 2976ad40f83e97e5e3628c32db1a06edafe21a72 (diff) | |
download | gitlab-ce-bf39c4bcdf64b656323a07e2f26079148f3a43c3.tar.gz |
Remove order-dependent expectation24341-fix-failure
Signed-off-by: Rémy Coutable <remy@rymai.me>
-rw-r--r-- | spec/models/group_label_spec.rb | 2 | ||||
-rw-r--r-- | spec/requests/api/labels_spec.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/group_label_spec.rb b/spec/models/group_label_spec.rb index 85eb889225b..2369658bf78 100644 --- a/spec/models/group_label_spec.rb +++ b/spec/models/group_label_spec.rb @@ -18,7 +18,7 @@ describe GroupLabel, models: true do end describe '#to_reference' do - let(:label) { create(:group_label) } + let(:label) { create(:group_label, title: 'feature') } context 'using id' do it 'returns a String reference to the object' do diff --git a/spec/requests/api/labels_spec.rb b/spec/requests/api/labels_spec.rb index 2ff90b6deac..5d84976c9c3 100644 --- a/spec/requests/api/labels_spec.rb +++ b/spec/requests/api/labels_spec.rb @@ -15,7 +15,7 @@ describe API::API, api: true do describe 'GET /projects/:id/labels' do it 'returns all available labels to the project' do group = create(:group) - group_label = create(:group_label, group: group) + group_label = create(:group_label, title: 'feature', group: group) project.update(group: group) expected_keys = [ 'id', 'name', 'color', 'description', |