summaryrefslogtreecommitdiff
path: root/test/rubygems/test_gem_commands_signout_command.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/rubygems/test_gem_commands_signout_command.rb')
-rw-r--r--test/rubygems/test_gem_commands_signout_command.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/rubygems/test_gem_commands_signout_command.rb b/test/rubygems/test_gem_commands_signout_command.rb
index 2674351fd3..2bb782e6f0 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
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