Merge pull request #3402 from evazion/fix-3039

Fix test failures under ruby 2.4
This commit is contained in:
Albert Yi
2017-12-13 14:28:25 -08:00
committed by GitHub
2 changed files with 8 additions and 5 deletions

View File

@@ -49,6 +49,7 @@ class PostViewCountServiceTest < ActiveSupport::TestCase
context "failure" do
setup do
@date = "2000-01-01"
stub_request(:get, "localhost:1234/post_views/rank").with(query: {"date" => @date}).to_return(body: "", status: 400)
end