Fix randomly failing spec.

This commit is contained in:
Guo Xiang Tan 2017-06-08 05:47:44 +09:00
parent 17a3eddb9f
commit 677fbc783d
1 changed files with 2 additions and 2 deletions

View File

@ -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