Commit bf39c4bc authored by Rémy Coutable's avatar Rémy Coutable

Remove order-dependent expectation

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 2976ad40
...@@ -18,7 +18,7 @@ describe GroupLabel, models: true do ...@@ -18,7 +18,7 @@ describe GroupLabel, models: true do
end end
describe '#to_reference' do describe '#to_reference' do
let(:label) { create(:group_label) } let(:label) { create(:group_label, title: 'feature') }
context 'using id' do context 'using id' do
it 'returns a String reference to the object' do it 'returns a String reference to the object' do
......
...@@ -15,7 +15,7 @@ describe API::API, api: true do ...@@ -15,7 +15,7 @@ describe API::API, api: true do
describe 'GET /projects/:id/labels' do describe 'GET /projects/:id/labels' do
it 'returns all available labels to the project' do it 'returns all available labels to the project' do
group = create(:group) group = create(:group)
group_label = create(:group_label, group: group) group_label = create(:group_label, title: 'feature', group: group)
project.update(group: group) project.update(group: group)
expected_keys = [ expected_keys = [
'id', 'name', 'color', 'description', 'id', 'name', 'color', 'description',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment