aboutsummaryrefslogtreecommitdiffstats
path: root/test/rubygems/test_gem_commands_cert_command.rb
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-04-29 14:18:59 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-05-08 14:13:29 +0900
commit93293043f135dec5a972378682b9e947fba7c4a6 (patch)
tree0b29babfec3cae2b071dc55d6b496a772249cffd /test/rubygems/test_gem_commands_cert_command.rb
parentb9031b10431b4ca517b520ddb9f86d82f16a3372 (diff)
downloadruby-93293043f135dec5a972378682b9e947fba7c4a6.tar.gz
[rubygems/rubygems] Remove unneeded global teardown
Instead, make each test cleanup after itself. https://github.com/rubygems/rubygems/commit/e0aba9d64f
Diffstat (limited to 'test/rubygems/test_gem_commands_cert_command.rb')
-rw-r--r--test/rubygems/test_gem_commands_cert_command.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/rubygems/test_gem_commands_cert_command.rb b/test/rubygems/test_gem_commands_cert_command.rb
index bb9ed9e630..fd1e66b915 100644
--- a/test/rubygems/test_gem_commands_cert_command.rb
+++ b/test/rubygems/test_gem_commands_cert_command.rb
@@ -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