Commit 6a41dc7a authored by Thong Kuah's avatar Thong Kuah

Merge branch...

Merge branch '297364-flaky-test-spec-services-merge_requests-export_csv_service_spec-rb-29-mergerequests' into 'master'

test: Fix flaky expectations

See merge request gitlab-org/gitlab!51457
parents 57fd8151 042b2943
......@@ -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