From ceacb06311cf150cd3682b277bbe6cf7e7bbbc30 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 8 May 2020 12:39:21 +0900 Subject: Revert "[rubygems/rubygems] Remove unneeded teardown" This reverts commit 0da416ab170dbe1cbd530a5a7c5e8128910014b2. --- test/rubygems/test_gem_commands_signout_command.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') 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 -- cgit v1.2.3