From 689bc94014d574ce8aa3f3282c7a2596c9a793db Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Mon, 22 Feb 2016 09:47:21 -0300 Subject: [PATCH] Fix point rule test --- test/unit/comment_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/comment_test.rb b/test/unit/comment_test.rb index ea79f39..8f0e5cb 100644 --- a/test/unit/comment_test.rb +++ b/test/unit/comment_test.rb @@ -234,7 +234,7 @@ class CommentTest < ActiveSupport::TestCase Vote.create!(:voter => person, :voteable => comment, :vote => -1) c = GamificationPlugin::PointsCategorization.for_type(:vote_voteable_author_negative).first - assert_difference 'comment.author.points_by_profile(community.identifier)', c.weight do + assert_difference 'comment.author.points_by_profile(community.identifier)', -c.weight do Vote.where(:voteable_id => comment.id).destroy_all end end -- libgit2 0.21.2