Commit ca22188e authored by Shinya Maeda's avatar Shinya Maeda

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

Fix a flaky spec

See merge request gitlab-org/gitlab!44301
parents fb25aab7 23422929
......@@ -16,7 +16,7 @@ RSpec.describe Groups::AutocompleteService do
def expect_labels_to_equal(labels, expected_labels)
extract_title = lambda { |label| label['title'] }
expect(labels.map(&extract_title)).to eq(expected_labels.map(&extract_title))
expect(labels.map(&extract_title)).to match_array(expected_labels.map(&extract_title))
end
describe '#labels_as_hash' do
......
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