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

* test/net/http/test_httpheader.rb: add missing test of

Net::HTTPHeader#each_capitalized_name.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54905 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
ktsj 2016-05-04 09:46:43 +00:00
parent 60287eab74
commit 803177b38e

View file

@ -121,6 +121,15 @@ class HTTPHeaderTest < Test::Unit::TestCase
@c.each_key do |k|
assert_equal 'my-header', k
end
def test_each_capitalized_name
@c['my-header'] = 'test'
@c.each_capitalized_name do |k|
assert_equal 'My-Header', k
end
@c.each_capitalized_name do |k|
assert_equal 'My-Header', k
end
end
def test_each_value