Commit 23422929 authored by Rémy Coutable's avatar Rémy Coutable

Fix a flaky spec

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent c1637245
......@@ -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