Fix failures in commenting tests.
Restricting users from upvoting their own comments broke some tests. Switch these tests to downvoting instead.
This commit is contained in:
@@ -111,7 +111,7 @@ class UserTest < ActiveSupport::TestCase
|
||||
assert(@user.can_comment_vote?)
|
||||
10.times do
|
||||
comment = FactoryGirl.create(:comment)
|
||||
FactoryGirl.create(:comment_vote, :comment_id => comment.id)
|
||||
FactoryGirl.create(:comment_vote, :comment_id => comment.id, :score => -1)
|
||||
end
|
||||
|
||||
assert(!@user.can_comment_vote?)
|
||||
|
||||
Reference in New Issue
Block a user