FEATURE: Editor badge

This commit is contained in:
Sam
2014-07-07 17:55:25 +10:00
parent ee3f7362e6
commit 0f25bbeaf7
8 changed files with 72 additions and 12 deletions

View File

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