Commit 689bc94014d574ce8aa3f3282c7a2596c9a793db
1 parent
b67299d0
Exists in
master
Fix point rule test
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
test/unit/comment_test.rb
... | ... | @@ -234,7 +234,7 @@ class CommentTest < ActiveSupport::TestCase |
234 | 234 | Vote.create!(:voter => person, :voteable => comment, :vote => -1) |
235 | 235 | |
236 | 236 | c = GamificationPlugin::PointsCategorization.for_type(:vote_voteable_author_negative).first |
237 | - assert_difference 'comment.author.points_by_profile(community.identifier)', c.weight do | |
237 | + assert_difference 'comment.author.points_by_profile(community.identifier)', -c.weight do | |
238 | 238 | Vote.where(:voteable_id => comment.id).destroy_all |
239 | 239 | end |
240 | 240 | end | ... | ... |