fix tests

This commit is contained in:
r888888888
2017-01-24 16:05:06 -08:00
parent fe86f40f92
commit 1207faa600
3 changed files with 8 additions and 6 deletions

View File

@@ -1,4 +1,6 @@
<% if @comment_vote.errors.any? %>
<% if @error %>
{"success": false, "errors": <%= @error.to_s.to_json.html_safe %>}
<% elsif @comment_vote.errors.any? %>
{"success": false, "errors": <%= @comment_vote.errors.full_messages.to_json.html_safe %>}
<% else %>
{"success": true}