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

@@ -64,8 +64,8 @@ GEM
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
addressable (2.5.1)
public_suffix (~> 2.0, >= 2.0.2)
addressable (2.5.2)
public_suffix (>= 2.0.2, < 4.0)
arel (6.0.4)
awesome_print (1.7.0)
aws-sdk (2.7.4)
@@ -108,7 +108,7 @@ GEM
cityhash (0.8.1)
coderay (1.1.1)
colorize (0.7.7)
crack (0.4.2)
crack (0.4.3)
safe_yaml (~> 1.0.0)
crass (1.0.2)
daemons (1.2.3)
@@ -156,6 +156,7 @@ GEM
multi_json (~> 1.11)
os (~> 0.9)
signet (~> 0.7)
hashdiff (0.3.7)
highline (1.7.8)
hike (1.2.3)
http (2.2.2)
@@ -246,7 +247,7 @@ GEM
pry-byebug (3.4.2)
byebug (~> 9.0)
pry (~> 0.10)
public_suffix (2.0.5)
public_suffix (3.0.1)
rack (1.6.5)
rack-test (0.6.3)
rack (>= 1.0)
@@ -385,9 +386,10 @@ GEM
unicorn-worker-killer (0.4.4)
get_process_mem (~> 0)
unicorn (>= 4, < 6)
webmock (1.21.0)
webmock (3.1.1)
addressable (>= 2.3.6)
crack (>= 0.3.2)
hashdiff
webrobots (0.1.2)
whenever (0.9.7)
chronic (>= 0.6.3)

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