summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2020-04-29 14:49:04 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2020-05-08 14:13:29 +0900
commit07d4ad935d2fd173aabd201862b09c3393fc8ebc (patch)
treef20bc44f6c2719f74f5021f7eaabe19a4f624e8b
parent93293043f135dec5a972378682b9e947fba7c4a6 (diff)
[rubygems/rubygems] Remove unneeded teardown
Tests using credentials shouldn't be leaving side effects. https://github.com/rubygems/rubygems/commit/975bcafdfc
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/3092
-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