From 8252769f75ad12ec8a5649b8be1997b0ce7ef480 Mon Sep 17 00:00:00 2001 From: akr Date: Tue, 7 Jun 2005 02:49:16 +0000 Subject: 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 --- test/net/http/test_https_proxy.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/net/http/test_https_proxy.rb b/test/net/http/test_https_proxy.rb index 5b237216f4..6332319f26 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) -- cgit v1.2.3