diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2017-03-23 11:58:52 +0000 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2017-03-23 11:58:52 +0000 |
commit | 04b33d3629ae7ed035051a5f313c355f727b552b (patch) | |
tree | a6707f4b5f2511ff1a7a122f91c73f3d919249cd /spec | |
parent | 747bf698e6934ce4ab0ea8140cf43ca3fca783cb (diff) | |
parent | e9bc346dff005bc253f5ab768b945c11f4885462 (diff) | |
download | gitlab-ce-04b33d3629ae7ed035051a5f313c355f727b552b.tar.gz |
Merge branch '29823-fix-transient-failure' into 'master'
Use match_array instead of eq when order is irrelevant
Closes #29709
See merge request !10148
Diffstat (limited to 'spec')
-rw-r--r-- | spec/services/issuable/bulk_update_service_spec.rb | 2 |
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 |