summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_commands_cert_command.rb
diff options
context:
space:
mode:
authorHiroshi SHIBATA <[email protected]>2020-05-08 12:39:30 +0900
committerHiroshi SHIBATA <[email protected]>2020-05-08 14:13:29 +0900
commitac2c07e98373bb62be618001c897fa9d5809d8a4 ()
treeac3ae70c43ce5038078bce0466b451585b1f908b /test/rubygems/test_gem_commands_cert_command.rb
parentceacb06311cf150cd3682b277bbe6cf7e7bbbc30 (diff)
Revert "[rubygems/rubygems] Remove unneeded global teardown"
This reverts commit 93d1588c782ab9d61699f98b6c64d7f0ab8121c0.
Notes: Merged: https://.com/ruby/ruby/pull/3092
-rw-r--r--test/rubygems/test_gem_commands_cert_command.rb4
1 files changed, 0 insertions, 4 deletions
@@ -597,7 +597,6 @@ 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
@@ -628,9 +627,6 @@ 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