mirror of
https://github.com/discourse/discourse.git
synced 2025-09-07 12:02:53 +08:00
Fix randomly failing spec.
This commit is contained in:
parent
17a3eddb9f
commit
677fbc783d
1 changed files with 2 additions and 2 deletions
|
@ -16,10 +16,10 @@ RSpec.describe Jobs::DiscourseNarrativeBot::GrantBadges do
|
|||
|
||||
expect(user.badges.count).to eq(2)
|
||||
|
||||
expect(user.badges.map(&:name)).to eq([
|
||||
expect(user.badges.map(&:name)).to contain_exactly(
|
||||
DiscourseNarrativeBot::NewUserNarrative::BADGE_NAME,
|
||||
DiscourseNarrativeBot::AdvancedUserNarrative::BADGE_NAME,
|
||||
])
|
||||
)
|
||||
|
||||
expect(other_user.badges.count).to eq(0)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue