mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FEATURE: Editor badge
This commit is contained in:
@@ -36,6 +36,8 @@ describe BadgeGranter do
|
||||
# TODO add welcome
|
||||
post.user.user_badges.pluck(:badge_id).sort.should == [Badge::NicePost,Badge::GoodPost]
|
||||
|
||||
post.user.notifications.count.should == 2
|
||||
|
||||
Badge.find(Badge::NicePost).grant_count.should == 1
|
||||
Badge.find(Badge::GoodPost).grant_count.should == 1
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user