summaryrefslogtreecommitdiff
path: root/test/net
diff options
context:
space:
mode:
authoraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-01-01 08:45:50 +0000
committeraamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-01-01 08:45:50 +0000
commit94402f983fbfacaf989c9f5d5d97fa5b4b6d1934 (patch)
tree3ebce2e64a3ebc80fb64f4b83e05169f6606f304 /test/net
parent6a95ae2a79f26d8efbfa4d9340fde6c10241606d (diff)
* lib/net/http.rb (each_capitalized): should join header field value. This patch is contributed sheepman [ruby-list:40478]
* test/net/http/test_httpheader.rb: test it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/net')
-rw-r--r--test/net/http/test_httpheader.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/net/http/test_httpheader.rb b/test/net/http/test_httpheader.rb
index 4a133b4..1a8751e 100644
--- a/test/net/http/test_httpheader.rb
+++ b/test/net/http/test_httpheader.rb
@@ -68,6 +68,14 @@ class HTTPHeaderTest < Test::Unit::TestCase
def test_each_value
end
+ def test_each_capitalized
+ @c['my-header'] = ['a', 'b']
+ @c.each_capitalized do |k,v|
+ assert_equal 'My-Header', k
+ assert_equal 'a, b', v
+ end
+ end
+
def test_key?
end