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:
parent
57bc28e790
commit
ef68b8737f
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue