Use match_array instead of eq when order is irrelevant
Signed-off-by: Rémy Coutable <remy@rymai.me>
This commit is contained in:
parent
c62314ab64
commit
e9bc346dff
|
@ -138,7 +138,7 @@ describe Issuable::BulkUpdateService, services: true do
|
||||||
let(:labels) { [bug, regression] }
|
let(:labels) { [bug, regression] }
|
||||||
|
|
||||||
it 'updates the labels of all issues passed to the labels passed' do
|
it 'updates the labels of all issues passed to the labels passed' do
|
||||||
expect(issues.map(&:reload).map(&:label_ids)).to all(eq(labels.map(&:id)))
|
expect(issues.map(&:reload).map(&:label_ids)).to all(match_array(labels.map(&:id)))
|
||||||
end
|
end
|
||||||
|
|
||||||
it 'does not update issues not passed in' do
|
it 'does not update issues not passed in' do
|
||||||
|
|
Loading…
Reference in New Issue