summaryrefslogtreecommitdiff
path: root/test/net
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-10 02:38:17 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-07-10 02:38:17 +0000
commit26ac058958490525c4093ac69571c039f4e512b4 (patch)
tree6767ac0877cabc7d6905a1fd219cc6d43fb4c2a0 /test/net
parent84c08bc3b8ed00251d72d468c46a914426ccc358 (diff)
* test/net/http/test_http.rb (TestNetHTTP_v1_2#test_get,
TestNetHTTP_v1_2_chunked#test_get): shoudn't check HttpResponse#decode_content if Zlib is not available. ko1 complained via IRC. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41883 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/net')
-rw-r--r--test/net/http/test_http.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/net/http/test_http.rb b/test/net/http/test_http.rb
index b838443..709a2e2 100644
--- a/test/net/http/test_http.rb
+++ b/test/net/http/test_http.rb
@@ -233,7 +233,7 @@ module TestNetHTTP_version_1_1_methods
http.get('/', { 'User-Agent' => 'test' }.freeze)
}
- assert res.decode_content, '[Bug #7924]'
+ assert res.decode_content, '[Bug #7924]' if Net::HTTP::HAVE_ZLIB
end
def _test_get__iter(http)
@@ -460,7 +460,7 @@ module TestNetHTTP_version_1_2_methods
assert_equal $test_net_http_data.size, res.body.size
assert_equal $test_net_http_data, res.body
- refute res.decode_content, 'Bug #7831'
+ refute res.decode_content, 'Bug #7831' if Net::HTTP::HAVE_ZLIB
}
end