From 3a2628025ed82b833483e8c42e08a0f7d12668ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Thu, 11 Jun 2020 12:12:01 +0200 Subject: [PATCH] Revert "Revert "[rubygems/rubygems] Remove unneeded teardown"" This reverts commit ceacb06311cf150cd3682b277bbe6cf7e7bbbc30. --- test/rubygems/test_gem_commands_signout_command.rb | 6 ------ 1 file changed, 6 deletions(-) diff --git a/test/rubygems/test_gem_commands_signout_command.rb b/test/rubygems/test_gem_commands_signout_command.rb index 2bb782e6f0..2674351fd3 100644 --- a/test/rubygems/test_gem_commands_signout_command.rb +++ b/test/rubygems/test_gem_commands_signout_command.rb @@ -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