diff --git a/test/net/http/test_httpheader.rb b/test/net/http/test_httpheader.rb index 5f56816bcb..effc3c5c78 100644 --- a/test/net/http/test_httpheader.rb +++ b/test/net/http/test_httpheader.rb @@ -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