Revert "Revert "[rubygems/rubygems] Remove unneeded teardown""
This reverts commit ceacb06311cf150cd3682b277bbe6cf7e7bbbc30.
This commit is contained in:
parent
2a20c17982
commit
3a2628025e
Notes:
git
2020-06-15 19:48:50 +09:00
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user