From 89c88eb5a9318f763779968e4c80214319ecb870 Mon Sep 17 00:00:00 2001 From: naruse Date: Fri, 10 Aug 2012 05:25:08 +0000 Subject: [PATCH] Suppress warnings: Net::HTTPResponse#header is obsolete git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/net/http/test_httpresponse.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/net/http/test_httpresponse.rb b/test/net/http/test_httpresponse.rb index bb4b7fbd89..c201410598 100644 --- a/test/net/http/test_httpresponse.rb +++ b/test/net/http/test_httpresponse.rb @@ -12,8 +12,8 @@ Connection: close hello EOS res = Net::HTTPResponse.read_new(io) - assert_equal('5', res.header['content-length']) - assert_equal('close', res.header['connection']) + assert_equal('5', res['content-length']) + assert_equal('close', res['connection']) end def test_multiline_header @@ -28,8 +28,8 @@ X-Bar: hello EOS res = Net::HTTPResponse.read_new(io) - assert_equal('XXX YYY', res.header['x-foo']) - assert_equal('XXX YYY', res.header['x-bar']) + assert_equal('XXX YYY', res['x-foo']) + assert_equal('XXX YYY', res['x-bar']) end def test_read_body