summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_security_trust_dir.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rubygems/test_gem_security_trust_dir.rb')
-rw-r--r--test/rubygems/test_gem_security_trust_dir.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/rubygems/test_gem_security_trust_dir.rb b/test/rubygems/test_gem_security_trust_dir.rb
index 56c2feb44c..7b0d450bd6 100644
--- a/test/rubygems/test_gem_security_trust_dir.rb
+++ b/test/rubygems/test_gem_security_trust_dir.rb
@@ -1,5 +1,9 @@
require 'rubygems/test_case'
+unless defined?(OpenSSL::SSL) then
+ warn 'Skipping Gem::Security::TrustDir tests. openssl not found.'
+end
+
class TestGemSecurityTrustDir < Gem::TestCase
CHILD_CERT = load_cert 'child'
@@ -90,5 +94,5 @@ class TestGemSecurityTrustDir < Gem::TestCase
assert_equal mask, File.stat(@dest_dir).mode unless win_platform?
end
-end
+end if defined?(OpenSSL::SSL)