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:
parent
60287eab74
commit
803177b38e
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue