From 07d4ad935d2fd173aabd201862b09c3393fc8ebc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Wed, 29 Apr 2020 14:49:04 +0200 Subject: [PATCH] [rubygems/rubygems] Remove unneeded teardown Tests using credentials shouldn't be leaving side effects. https://github.com/rubygems/rubygems/commit/975bcafdfc --- 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