summaryrefslogtreecommitdiff
path: root/test/net/http
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-08-10 05:25:04 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-08-10 05:25:04 +0000
commit7391ae231a3ab09b123044648c9453df4a3dc808 (patch)
treec447d268de281644dc6fc1e21548aa8a375bb046 /test/net/http
parent33a63355a7dd650940ce24f85f2f1f685d05689a (diff)
Run automatic deflate decoding only if it has zlib.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36678 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/net/http')
-rw-r--r--test/net/http/test_httpresponse.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/net/http/test_httpresponse.rb b/test/net/http/test_httpresponse.rb
index d57614bb73..bb4b7fbd89 100644
--- a/test/net/http/test_httpresponse.rb
+++ b/test/net/http/test_httpresponse.rb
@@ -93,7 +93,7 @@ EOS
end
assert_equal 'hello', body
- end
+ end if Net::HTTP::HAVE_ZLIB
def test_read_body_content_encoding_deflate_chunked
io = dummy_io(<<EOS)
@@ -119,7 +119,7 @@ EOS
end
assert_equal 'hello', body
- end
+ end if Net::HTTP::HAVE_ZLIB
def test_read_body_content_encoding_deflate_no_length
io = dummy_io(<<EOS)
@@ -139,7 +139,7 @@ EOS
end
assert_equal 'hello', body
- end
+ end if Net::HTTP::HAVE_ZLIB
def test_read_body_content_encoding_deflate_content_range
io = dummy_io(<<EOS)