Remove order-dependent expectation
Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
parent
2976ad40f8
commit
bf39c4bcdf
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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',
|
||||
|
|
Loading…
Reference in a new issue