From 64f9b09c9993f10e834e5752e78a064969fa039b Mon Sep 17 00:00:00 2001 From: Carlos Purificacao Date: Thu, 10 Dec 2015 15:22:25 -0300 Subject: [PATCH] Fixed test for article vote --- test/unit/api/articles_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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