summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2017-04-25 11:05:28 +0200
committerSamuel Giddins <segiddins@segiddins.me>2017-04-25 11:05:28 +0200
commitadcb353f894c8863fb2e982074e3eb34e9ee8d1e (patch)
tree39718f78f2cdc077caaa530f3aba16473e74ab9d
parentf18c3727cad933a95714057b8c9ac475f29f8283 (diff)
downloadbundler-adcb353f894c8863fb2e982074e3eb34e9ee8d1e.tar.gz
Use FileUtils.rm in specs instead of shell
-rw-r--r--spec/commands/newgem_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/commands/newgem_spec.rb b/spec/commands/newgem_spec.rb
index 6ce19124f5..a3c3a36419 100644
--- a/spec/commands/newgem_spec.rb
+++ b/spec/commands/newgem_spec.rb
@@ -47,7 +47,7 @@ RSpec.describe "bundle gem" do
end
after do
- `rm "#{ENV["GIT_CONFIG"]}"` if File.exist?(ENV["GIT_CONFIG"])
+ FileUtils.rm(ENV["GIT_CONFIG"]) if File.exist?(ENV["GIT_CONFIG"])
ENV["GIT_CONFIG"] = @git_config_location
end