diff options
author | Sean McGivern <sean@gitlab.com> | 2018-11-15 11:51:40 +0300 |
---|---|---|
committer | GitLab Release Tools Bot <robert+release-tools@gitlab.com> | 2018-11-15 16:53:32 +0300 |
commit | d03c99a39db8db1e6aa86a3e4d77db95ae8b32e5 (patch) | |
tree | e1311f8003519e94d470db20f46ff5d092f09183 | |
parent | 781257abc5653ed4798a73c0d36859dc1ed4aecb (diff) |
Merge branch '53491-fix-again' into 'master'
Don't care about order when getting awarded issues
Closes #53491
See merge request gitlab-org/gitlab-ce!23101
(cherry picked from commit f3c44f640a0644590485d61d36ad222b343ec139)
8ae9b248 Don't care about order when getting awarded issues
-rw-r--r-- | spec/models/concerns/awardable_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/models/concerns/awardable_spec.rb b/spec/models/concerns/awardable_spec.rb index debc02fa51f..5713106418d 100644 --- a/spec/models/concerns/awardable_spec.rb +++ b/spec/models/concerns/awardable_spec.rb @@ -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_emoji2.user) - expect(Issue.awarded(award_emoji.user)).to eq [issue, issue3] - expect(Issue.awarded(award_emoji2.user)).to eq [issue2, issue3] + expect(Issue.awarded(award_emoji.user)).to contain_exactly(issue, issue3) + expect(Issue.awarded(award_emoji2.user)).to contain_exactly(issue2, issue3) end end |