tests: fix broken tests.

This commit is contained in:
evazion
2021-05-15 01:03:32 -05:00
parent cb8cbed0ec
commit ffbf7f1ccf
5 changed files with 7 additions and 4 deletions

View File

@@ -28,12 +28,12 @@ class CommentComponent < ApplicationComponent
def upvoted?
return false if current_user.is_anonymous?
current_vote&.is_positive?
!!current_vote&.is_positive?
end
def downvoted?
return false if current_user.is_anonymous?
current_vote&.is_negative?
!!current_vote&.is_negative?
end
def current_vote