diff --git a/test/unit/api/articles_test.rb b/test/unit/api/articles_test.rb index ddf4359..7161361 100644 --- a/test/unit/api/articles_test.rb +++ b/test/unit/api/articles_test.rb @@ -154,7 +154,7 @@ class ArticlesTest < ActiveSupport::TestCase post "/api/v1/articles/#{article.id}/vote?#{params.to_query}" json = JSON.parse(last_response.body) ## The api should not allow to save this vote - assert_equal false, json['vote'] + assert_equal 400, last_response.status end -- libgit2 0.21.2