1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Suppress warnings: Net::HTTPResponse#header is obsolete

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2012-08-10 05:25:08 +00:00
parent 7391ae231a
commit 89c88eb5a9

View file

@ -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