summaryrefslogtreecommitdiff
path: root/spec/services/issuable
diff options
context:
space:
mode:
authorRémy Coutable <remy@rymai.me>2017-03-22 17:31:30 +0100
committerRémy Coutable <remy@rymai.me>2017-03-22 17:31:30 +0100
commite9bc346dff005bc253f5ab768b945c11f4885462 (patch)
tree62327ee3942d1ce60506bf0b33b51aef02101876 /spec/services/issuable
parentc62314ab6419f2f61b1acb5287de51cf2d459791 (diff)
downloadgitlab-ce-e9bc346dff005bc253f5ab768b945c11f4885462.tar.gz
Use match_array instead of eq when order is irrelevant
Signed-off-by: Rémy Coutable <remy@rymai.me>
Diffstat (limited to 'spec/services/issuable')
-rw-r--r--spec/services/issuable/bulk_update_service_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/services/issuable/bulk_update_service_spec.rb b/spec/services/issuable/bulk_update_service_spec.rb
index 0475f38fe5e..7a1ac027310 100644
--- a/spec/services/issuable/bulk_update_service_spec.rb
+++ b/spec/services/issuable/bulk_update_service_spec.rb
@@ -138,7 +138,7 @@ describe Issuable::BulkUpdateService, services: true do
let(:labels) { [bug, regression] }
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
it 'does not update issues not passed in' do