diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2017-04-25 11:05:28 +0200 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2017-04-25 11:05:28 +0200 |
commit | adcb353f894c8863fb2e982074e3eb34e9ee8d1e (patch) | |
tree | 39718f78f2cdc077caaa530f3aba16473e74ab9d /spec | |
parent | f18c3727cad933a95714057b8c9ac475f29f8283 (diff) | |
download | bundler-adcb353f894c8863fb2e982074e3eb34e9ee8d1e.tar.gz |
Use FileUtils.rm in specs instead of shell
Diffstat (limited to 'spec')
-rw-r--r-- | spec/commands/newgem_spec.rb | 2 |
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 |