diff --git a/spec/services/badge_granter_spec.rb b/spec/services/badge_granter_spec.rb index fb5cea4d0e4..1902ff14c3b 100644 --- a/spec/services/badge_granter_spec.rb +++ b/spec/services/badge_granter_spec.rb @@ -13,6 +13,7 @@ describe BadgeGranter do user.user_profile.update_column(:badge_granted_title, true) + BadgeGranter.grant(badge, user) BadgeGranter.revoke_ungranted_titles! user.reload