diff options
author | Hiroshi SHIBATA <[email protected]> | 2020-05-08 12:39:21 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2020-05-08 14:13:29 +0900 |
commit | ceacb06311cf150cd3682b277bbe6cf7e7bbbc30 (patch) | |
tree | e912abb7955fed47366c268340a8d5a60bdda996 /test | |
parent | 20971d0df41368e0f946683823bc786514e16fef (diff) |
Revert "[rubygems/rubygems] Remove unneeded teardown"
This reverts commit 0da416ab170dbe1cbd530a5a7c5e8128910014b2.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3092
Diffstat (limited to 'test')
-rw-r--r-- | test/rubygems/test_gem_commands_signout_command.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/rubygems/test_gem_commands_signout_command.rb b/test/rubygems/test_gem_commands_signout_command.rb index 2674351fd3..2bb782e6f0 100644 --- a/test/rubygems/test_gem_commands_signout_command.rb +++ b/test/rubygems/test_gem_commands_signout_command.rb @@ -8,9 +8,15 @@ class TestGemCommandsSignoutCommand < Gem::TestCase def setup super + @cmd = Gem::Commands::SignoutCommand.new end + def teardown + super + File.delete Gem.configuration.credentials_path if File.exist?(Gem.configuration.credentials_path) + end + def test_execute_when_user_is_signed_in FileUtils.mkdir_p File.dirname(Gem.configuration.credentials_path) FileUtils::touch Gem.configuration.credentials_path |