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

This reverts commit ceacb06311cf150cd3682b277bbe6cf7e7bbbc30.
This commit is contained in:
David Rodríguez 2020-06-11 12:12:01 +02:00 committed by Hiroshi SHIBATA
parent 2a20c17982
commit 3a2628025e
Notes: git 2020-06-15 19:48:50 +09:00

View File

@ -8,15 +8,9 @@ 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