Revert "Revert "[rubygems/rubygems] Remove unneeded global teardown""

This reverts commit ac2c07e983.
This commit is contained in:
David Rodríguez 2020-06-11 12:12:13 +02:00 committed by Hiroshi SHIBATA
parent 3a2628025e
commit c3ecd1cbd3
Notes: git 2020-06-15 19:48:50 +09:00
11 changed files with 32 additions and 9 deletions

View file

@ -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