summaryrefslogtreecommitdiff
path: root/test/net/http/test_httpresponse.rb
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-08-10 05:25:08 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-08-10 05:25:08 +0000
commit89c88eb5a9318f763779968e4c80214319ecb870 (patch)
tree7f73038dc92cc16e24e9af003010f353639df994 /test/net/http/test_httpresponse.rb
parent7391ae231a3ab09b123044648c9453df4a3dc808 (diff)
Suppress warnings: Net::HTTPResponse#header is obsolete
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/net/http/test_httpresponse.rb')
-rw-r--r--test/net/http/test_httpresponse.rb8
1 files 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