From e1494145d9725dba217fbc2bd9645db011fab946 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Mon, 29 Jun 2020 18:42:29 +0200 Subject: [rubygems/rubygems] Make sure tests at least load without openssl https://github.com/rubygems/rubygems/commit/054d57f74b --- test/rubygems/test_gem_specification.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/rubygems/test_gem_specification.rb') diff --git a/test/rubygems/test_gem_specification.rb b/test/rubygems/test_gem_specification.rb index b99d12a044..f635be859b 100644 --- a/test/rubygems/test_gem_specification.rb +++ b/test/rubygems/test_gem_specification.rb @@ -2431,6 +2431,9 @@ end end def test_to_ruby_with_rsa_key + require 'rubygems/openssl' + skip 'openssl is missing' unless defined?(OpenSSL::PKey::RSA) + rsa_key = OpenSSL::PKey::RSA.new(2048) @a2.signing_key = rsa_key ruby_code = @a2.to_ruby -- cgit v1.2.3