summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-07 02:49:16 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-07 02:49:16 +0000
commitfa404f929c7096ba78ed04c21539978c7cfac756 (patch)
tree5577faeea052a61c0dfc3b5f055a51c51c63840f
parent9bb443c2c80b8d7df1e0e92256428e6c344f11b0 (diff)
downloadruby-fa404f929c7096ba78ed04c21539978c7cfac756.tar.gz
ruby-fa404f929c7096ba78ed04c21539978c7cfac756.tar.xz
ruby-fa404f929c7096ba78ed04c21539978c7cfac756.zip
skip test if openssl is not available.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@8576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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)