[前][次][番号順一覧][スレッド一覧]

ruby-changes:61137

From: Hiroshi <ko1@a...>
Date: Fri, 8 May 2020 14:15:00 +0900 (JST)
Subject: [ruby-changes:61137] ceacb06311 (master): Revert "[rubygems/rubygems] Remove unneeded teardown"

https://git.ruby-lang.org/ruby.git/commit/?id=ceacb06311

From ceacb06311cf150cd3682b277bbe6cf7e7bbbc30 Mon Sep 17 00:00:00 2001
From: Hiroshi SHIBATA <hsbt@r...>
Date: Fri, 8 May 2020 12:39:21 +0900
Subject: Revert "[rubygems/rubygems] Remove unneeded teardown"

This reverts commit 0da416ab170dbe1cbd530a5a7c5e8128910014b2.

diff --git a/test/rubygems/test_gem_commands_signout_command.rb b/test/rubygems/test_gem_commands_signout_command.rb
index 2674351..2bb782e 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 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/

[前][次][番号順一覧][スレッド一覧]