Skip to content

Commit 32a7823

Browse files
committed
Avoid MiniTest deprecation: use assert_nil
1 parent 0e5a8fb commit 32a7823

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/test_net_http_persistent.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ def test_proxy_equals_env
786786
def test_proxy_equals_nil
787787
@http.proxy = nil
788788

789-
assert_equal nil, @http.proxy_uri
789+
assert_nil @http.proxy_uri
790790

791791
assert_equal 1, @http.generation, 'generation'
792792
assert_equal 1, @http.ssl_generation, 'ssl_generation'
@@ -1094,7 +1094,7 @@ def test_request_connection_close_request
10941094
assert_kind_of Net::HTTP::Get, req
10951095
assert_equal '/path', req.path
10961096
assert_equal 'close', req['connection']
1097-
assert_equal nil, req['keep-alive']
1097+
assert_nil req['keep-alive']
10981098

10991099
assert c.http.finished?
11001100
end

0 commit comments

Comments
 (0)