mirror of
https://github.com/ruby/ruby.git
synced 2025-08-24 05:25:34 +02:00
Revert "Revert "[rubygems/rubygems] Remove unneeded global teardown""
This reverts commit ac2c07e983
.
This commit is contained in:
parent
3a2628025e
commit
c3ecd1cbd3
Notes:
git
2020-06-15 19:48:50 +09:00
11 changed files with 32 additions and 9 deletions
|
@ -597,6 +597,7 @@ ERROR: --private-key not specified and ~/.gem/gem-private_key.pem does not exis
|
|||
|
||||
def test_execute_re_sign
|
||||
gem_path = File.join Gem.user_home, ".gem"
|
||||
Dir.mkdir gem_path
|
||||
|
||||
path = File.join @tempdir, 'cert.pem'
|
||||
Gem::Security.write EXPIRED_PUBLIC_CERT, path, 0600
|
||||
|
@ -627,6 +628,9 @@ ERROR: --private-key not specified and ~/.gem/gem-private_key.pem does not exis
|
|||
end
|
||||
|
||||
def test_execute_re_sign_with_cert_expiration_length_days
|
||||
gem_path = File.join Gem.user_home, ".gem"
|
||||
Dir.mkdir gem_path
|
||||
|
||||
path = File.join @tempdir, 'cert.pem'
|
||||
Gem::Security.write EXPIRED_PUBLIC_CERT, path, 0600
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue