diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2020-04-29 14:49:04 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2020-05-08 14:13:29 +0900 |
commit | 07d4ad935d2fd173aabd201862b09c3393fc8ebc (patch) | |
tree | f20bc44f6c2719f74f5021f7eaabe19a4f624e8b /test | |
parent | 93293043f135dec5a972378682b9e947fba7c4a6 (diff) | |
download | ruby-07d4ad935d2fd173aabd201862b09c3393fc8ebc.tar.gz |
[rubygems/rubygems] Remove unneeded teardown
Tests using credentials shouldn't be leaving side effects.
https://github.com/rubygems/rubygems/commit/975bcafdfc
Diffstat (limited to 'test')
-rw-r--r-- | test/rubygems/test_gem_commands_signout_command.rb | 6 |
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 |