Don't care about order when getting awarded issues

Fixing failing master:
https://gitlab.com/gitlab-org/gitlab-ce/-/jobs/116776474
This commit is contained in:
Toon Claes 2018-11-06 07:02:01 +01:00 committed by Thong Kuah
parent f76b3106e8
commit 8ae9b24851

View file

@ -37,8 +37,8 @@ describe Awardable do
create(:award_emoji, awardable: issue3, name: "star", user: award_emoji.user) create(:award_emoji, awardable: issue3, name: "star", user: award_emoji.user)
create(:award_emoji, awardable: issue3, name: "star", user: award_emoji2.user) create(:award_emoji, awardable: issue3, name: "star", user: award_emoji2.user)
expect(Issue.awarded(award_emoji.user)).to eq [issue, issue3] expect(Issue.awarded(award_emoji.user)).to contain_exactly(issue, issue3)
expect(Issue.awarded(award_emoji2.user)).to eq [issue2, issue3] expect(Issue.awarded(award_emoji2.user)).to contain_exactly(issue2, issue3)
end end
end end