ruby-changes:61135
From: David <ko1@a...>
Date: Fri, 8 May 2020 14:14:58 +0900 (JST)
Subject: [ruby-changes:61135] 07d4ad935d (master): [rubygems/rubygems] Remove unneeded teardown
https://git.ruby-lang.org/ruby.git/commit/?id=07d4ad935d From 07d4ad935d2fd173aabd201862b09c3393fc8ebc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <deivid.rodriguez@r...> Date: Wed, 29 Apr 2020 14:49:04 +0200 Subject: [rubygems/rubygems] Remove unneeded teardown Tests using credentials shouldn't be leaving side effects. https://github.com/rubygems/rubygems/commit/975bcafdfc diff --git a/test/rubygems/test_gem_commands_signout_command.rb b/test/rubygems/test_gem_commands_signout_command.rb index 2bb782e..2674351 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 https://github.com/ruby/ruby/blob/trunk/test/rubygems/test_gem_commands_signout_command.rb#L8 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 v0.10.2 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/