summaryrefslogtreecommitdiff
path: root/test/net
diff options
context:
space:
mode:
authordrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-14 05:32:58 +0000
committerdrbrain <drbrain@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-14 05:32:58 +0000
commit64db9dcbd5451f5f3ad4ef69662311a7cbb44a95 (patch)
tree257233dd477b1dda8926e730904209d36f76b05c /test/net
parent632ab19c4ddfdd7bf73adf0215e488382f02bb1a (diff)
* lib/net/http.rb: Removed OpenSSL dependency from Net::HTTP.
* test/net/http/test_http.rb: Remove Zlib dependency from tests. * test/net/http/test_http_request.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39238 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/net')
-rw-r--r--test/net/http/test_http.rb2
-rw-r--r--test/net/http/test_http_request.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/test/net/http/test_http.rb b/test/net/http/test_http.rb
index 32c8744..9a7300f 100644
--- a/test/net/http/test_http.rb
+++ b/test/net/http/test_http.rb
@@ -442,7 +442,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
- assert res.decode_content, 'Bug #7831'
+ assert res.decode_content, 'Bug #7831' if Net::HTTP::HAVE_ZLIB
}
end
diff --git a/test/net/http/test_http_request.rb b/test/net/http/test_http_request.rb
index 4ce93ac..1dcb847 100644
--- a/test/net/http/test_http_request.rb
+++ b/test/net/http/test_http_request.rb
@@ -62,7 +62,7 @@ class HTTPRequestTest < Test::Unit::TestCase
refute req2.decode_content,
'Bug #7381 - do not decode content if the user overrides'
- end
+ end if Net::HTTP::HAVE_ZLIB
def test_header_set
req = Net::HTTP::Get.new '/'
@@ -73,7 +73,7 @@ class HTTPRequestTest < Test::Unit::TestCase
refute req.decode_content,
'Bug #7831 - do not decode content if the user overrides'
- end
+ end if Net::HTTP::HAVE_ZLIB
end