Commit 00978bf7 authored by charlie ablett's avatar charlie ablett

Merge branch 'fix-another-flaky-spec' into 'master'

Fix an array-order expectation in update_assignees_service_spec.rb

See merge request gitlab-org/gitlab!64237
parents 8e2550a6 277bccae
...@@ -51,7 +51,7 @@ RSpec.describe MergeRequests::UpdateAssigneesService do ...@@ -51,7 +51,7 @@ RSpec.describe MergeRequests::UpdateAssigneesService do
let(:opts) { { assignee_ids: [0, user2.id, 0, user3.id, 0] } } let(:opts) { { assignee_ids: [0, user2.id, 0, user3.id, 0] } }
it 'ignores 0 IDs' do it 'ignores 0 IDs' do
expect { update_merge_request }.to change(merge_request, :assignees).to([user2, user3]) expect { update_merge_request }.to change(merge_request, :assignees).to(match_array([user2, user3]))
end end
end end
end end
......
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