summaryrefslogtreecommitdiff
path: root/test/rubygems
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-06-11 12:12:01 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-06-15 19:48:25 +0900
commit3a2628025ed82b833483e8c42e08a0f7d12668ad (patch)
tree0595c61ec218953e1e8d3119f9f212661853a105 /test/rubygems
parent2a20c179822ef72bb0d7329c22cbe1732f5e307b (diff)
Revert "Revert "[rubygems/rubygems] Remove unneeded teardown""
This reverts commit ceacb06311cf150cd3682b277bbe6cf7e7bbbc30.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3211
Diffstat (limited to 'test/rubygems')
-rw-r--r--test/rubygems/test_gem_commands_signout_command.rb6
1 files changed, 0 insertions, 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