diff options
| author | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-01-01 08:45:50 +0000 |
|---|---|---|
| committer | aamine <aamine@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-01-01 08:45:50 +0000 |
| commit | 1fc6aaccf3ce48af021f910e67392392a77055bc (patch) | |
| tree | 3ebce2e64a3ebc80fb64f4b83e05169f6606f304 /test/net/http | |
| parent | 92c27297c6245f6479465ae84e200fc4f16db1c8 (diff) | |
| download | ruby-1fc6aaccf3ce48af021f910e67392392a77055bc.tar.gz ruby-1fc6aaccf3ce48af021f910e67392392a77055bc.tar.xz ruby-1fc6aaccf3ce48af021f910e67392392a77055bc.zip | |
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@7701 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/net/http')
| -rw-r--r-- | test/net/http/test_httpheader.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/net/http/test_httpheader.rb b/test/net/http/test_httpheader.rb index 4a133b44d..1a8751e28 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 |
