summaryrefslogtreecommitdiff
path: root/test/open-uri
diff options
context:
space:
mode:
Diffstat (limited to 'test/open-uri')
-rw-r--r--test/open-uri/test_ssl.rb11
1 files changed, 8 insertions, 3 deletions
diff --git a/test/open-uri/test_ssl.rb b/test/open-uri/test_ssl.rb
index 059465d73d..4ba59d567a 100644
--- a/test/open-uri/test_ssl.rb
+++ b/test/open-uri/test_ssl.rb
@@ -1,13 +1,18 @@
require 'test/unit'
require 'open-uri'
-require 'openssl'
require 'stringio'
require 'webrick'
-require 'webrick/https'
+begin
+ require 'openssl'
+ require 'webrick/https'
+rescue LoadError
+end
require 'webrick/httpproxy'
class TestOpenURISSL < Test::Unit::TestCase
+end
+class TestOpenURISSL
NullLog = Object.new
def NullLog.<<(arg)
end
@@ -100,7 +105,7 @@ class TestOpenURISSL < Test::Unit::TestCase
}
end
-end
+end if defined?(OpenSSL)
# mkdir demoCA demoCA/private demoCA/newcerts
# touch demoCA/index.txt