summaryrefslogtreecommitdiff
path: root/test
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
commit8252769f75ad12ec8a5649b8be1997b0ce7ef480 (patch)
tree47f11727d649de31104c548365de15cdb1b38eb6 /test
parent8168978bf3c992aa96d126aefa9c87f11a447faa (diff)
skip test if openssl is not available.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8576 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-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 5b23721..6332319 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)