diff --git a/test/net/http/test_http_request.rb b/test/net/http/test_http_request.rb index 35dcbbc704..7fd82b0353 100644 --- a/test/net/http/test_http_request.rb +++ b/test/net/http/test_http_request.rb @@ -51,7 +51,7 @@ class HTTPRequestTest < Test::Unit::TestCase 'user-agent' => %w[Ruby], } - assert_equal expected, req.to_hash.tap{_1.delete 'accept-encoding'} + assert_equal expected, req.to_hash end def test_initialize_accept_encoding