diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2020-06-29 18:42:29 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-07-31 21:07:19 +0900 |
commit | e1494145d9725dba217fbc2bd9645db011fab946 (patch) | |
tree | dcfde705d5e66ae268653479b88d5e5881efe0d9 /test/rubygems/test_gem_specification.rb | |
parent | 779f1a9c69d4fa380a1d3ee7cb0c59a111278de4 (diff) |
[rubygems/rubygems] Make sure tests at least load without openssl
https://github.com/rubygems/rubygems/commit/054d57f74b
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3379
Diffstat (limited to 'test/rubygems/test_gem_specification.rb')
-rw-r--r-- | test/rubygems/test_gem_specification.rb | 3 |
1 files changed, 3 insertions, 0 deletions
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 |