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
parent 57bc28e790
commit ef68b8737f

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