Commit 042b2943 authored by Rémy Coutable's avatar Rémy Coutable

test: Fix flaky expectations

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent c46476c0
......@@ -27,11 +27,11 @@ RSpec.describe MergeRequests::ExportCsvService do
let_it_be(:merge_request) { create(:merge_request, assignees: create_list(:user, 2)) }
it 'contains the names of assignees' do
expect(csv['Assignees']).to eq(merge_request.assignees.map(&:name).join(', '))
expect(csv['Assignees'].split(', ')).to match_array(merge_request.assignees.map(&:name))
end
it 'contains the usernames of assignees' do
expect(csv['Assignee Usernames']).to eq(merge_request.assignees.map(&:username).join(', '))
expect(csv['Assignee Usernames'].split(', ')).to match_array(merge_request.assignees.map(&:username))
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