Merge pull request #3402 from evazion/fix-3039
Fix test failures under ruby 2.4
This commit is contained in:
12
Gemfile.lock
12
Gemfile.lock
@@ -64,8 +64,8 @@ GEM
|
|||||||
minitest (~> 5.1)
|
minitest (~> 5.1)
|
||||||
thread_safe (~> 0.3, >= 0.3.4)
|
thread_safe (~> 0.3, >= 0.3.4)
|
||||||
tzinfo (~> 1.1)
|
tzinfo (~> 1.1)
|
||||||
addressable (2.5.1)
|
addressable (2.5.2)
|
||||||
public_suffix (~> 2.0, >= 2.0.2)
|
public_suffix (>= 2.0.2, < 4.0)
|
||||||
arel (6.0.4)
|
arel (6.0.4)
|
||||||
awesome_print (1.7.0)
|
awesome_print (1.7.0)
|
||||||
aws-sdk (2.7.4)
|
aws-sdk (2.7.4)
|
||||||
@@ -108,7 +108,7 @@ GEM
|
|||||||
cityhash (0.8.1)
|
cityhash (0.8.1)
|
||||||
coderay (1.1.1)
|
coderay (1.1.1)
|
||||||
colorize (0.7.7)
|
colorize (0.7.7)
|
||||||
crack (0.4.2)
|
crack (0.4.3)
|
||||||
safe_yaml (~> 1.0.0)
|
safe_yaml (~> 1.0.0)
|
||||||
crass (1.0.2)
|
crass (1.0.2)
|
||||||
daemons (1.2.3)
|
daemons (1.2.3)
|
||||||
@@ -156,6 +156,7 @@ GEM
|
|||||||
multi_json (~> 1.11)
|
multi_json (~> 1.11)
|
||||||
os (~> 0.9)
|
os (~> 0.9)
|
||||||
signet (~> 0.7)
|
signet (~> 0.7)
|
||||||
|
hashdiff (0.3.7)
|
||||||
highline (1.7.8)
|
highline (1.7.8)
|
||||||
hike (1.2.3)
|
hike (1.2.3)
|
||||||
http (2.2.2)
|
http (2.2.2)
|
||||||
@@ -246,7 +247,7 @@ GEM
|
|||||||
pry-byebug (3.4.2)
|
pry-byebug (3.4.2)
|
||||||
byebug (~> 9.0)
|
byebug (~> 9.0)
|
||||||
pry (~> 0.10)
|
pry (~> 0.10)
|
||||||
public_suffix (2.0.5)
|
public_suffix (3.0.1)
|
||||||
rack (1.6.5)
|
rack (1.6.5)
|
||||||
rack-test (0.6.3)
|
rack-test (0.6.3)
|
||||||
rack (>= 1.0)
|
rack (>= 1.0)
|
||||||
@@ -385,9 +386,10 @@ GEM
|
|||||||
unicorn-worker-killer (0.4.4)
|
unicorn-worker-killer (0.4.4)
|
||||||
get_process_mem (~> 0)
|
get_process_mem (~> 0)
|
||||||
unicorn (>= 4, < 6)
|
unicorn (>= 4, < 6)
|
||||||
webmock (1.21.0)
|
webmock (3.1.1)
|
||||||
addressable (>= 2.3.6)
|
addressable (>= 2.3.6)
|
||||||
crack (>= 0.3.2)
|
crack (>= 0.3.2)
|
||||||
|
hashdiff
|
||||||
webrobots (0.1.2)
|
webrobots (0.1.2)
|
||||||
whenever (0.9.7)
|
whenever (0.9.7)
|
||||||
chronic (>= 0.6.3)
|
chronic (>= 0.6.3)
|
||||||
|
|||||||
@@ -49,6 +49,7 @@ class PostViewCountServiceTest < ActiveSupport::TestCase
|
|||||||
|
|
||||||
context "failure" do
|
context "failure" do
|
||||||
setup do
|
setup do
|
||||||
|
@date = "2000-01-01"
|
||||||
stub_request(:get, "localhost:1234/post_views/rank").with(query: {"date" => @date}).to_return(body: "", status: 400)
|
stub_request(:get, "localhost:1234/post_views/rank").with(query: {"date" => @date}).to_return(body: "", status: 400)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user