summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/net/http/test_https_proxy.rb7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/net/http/test_https_proxy.rb b/test/net/http/test_https_proxy.rb
index 5b237216f..6332319f2 100644
--- a/test/net/http/test_https_proxy.rb
+++ b/test/net/http/test_https_proxy.rb
@@ -1,4 +1,7 @@
-require 'net/https'
+begin
+ require 'net/https'
+rescue LoadError
+end
require 'test/unit'
class HTTPSProxyTest < Test::Unit::TestCase
@@ -23,5 +26,5 @@ class HTTPSProxyTest < Test::Unit::TestCase
"[ruby-dev:25673]")
}
end
-end
+end if defined?(OpenSSL)