From 98026167800bf7b0a7eb86c5112d06c8aac7b8af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Wed, 8 May 2019 19:09:01 +0200 Subject: [PATCH] Revert "Remove unnecessary check" This reverts commit c79adef3fa59ff2a2173ea8beffb17d8fb146008. --- spec/commands/newgem_spec.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/commands/newgem_spec.rb b/spec/commands/newgem_spec.rb index e46a8fd3824..dcd36d3fe4d 100644 --- a/spec/commands/newgem_spec.rb +++ b/spec/commands/newgem_spec.rb @@ -36,7 +36,7 @@ def gem_skeleton_assertions(gem_name) end after do - FileUtils.rm(ENV["GIT_CONFIG"]) + FileUtils.rm(ENV["GIT_CONFIG"]) if File.exist?(ENV["GIT_CONFIG"]) ENV["GIT_CONFIG"] = @git_config_location end