Fix randomly failing spec.
This commit is contained in:
parent
17a3eddb9f
commit
677fbc783d
|
@ -16,10 +16,10 @@ RSpec.describe Jobs::DiscourseNarrativeBot::GrantBadges do
|
||||||
|
|
||||||
expect(user.badges.count).to eq(2)
|
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::NewUserNarrative::BADGE_NAME,
|
||||||
DiscourseNarrativeBot::AdvancedUserNarrative::BADGE_NAME,
|
DiscourseNarrativeBot::AdvancedUserNarrative::BADGE_NAME,
|
||||||
])
|
)
|
||||||
|
|
||||||
expect(other_user.badges.count).to eq(0)
|
expect(other_user.badges.count).to eq(0)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue