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

@@ -8,7 +8,7 @@ class CommentVotesController < ApplicationController
@comment_vote = @comment.vote!(params[:score])
rescue CommentVote::Error, ActiveRecord::RecordInvalid => x
@error = x
render status: 500
render status: 422
end
def destroy
@@ -16,6 +16,6 @@ class CommentVotesController < ApplicationController
@comment.unvote!
rescue CommentVote::Error => x
@error = x
render status: 500
render status: 422
end
end