aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--spec/bundler/quality_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/bundler/quality_spec.rb b/spec/bundler/quality_spec.rb
index 3e6183ed9d..c3f2fe23b7 100644
--- a/spec/bundler/quality_spec.rb
+++ b/spec/bundler/quality_spec.rb
@@ -239,7 +239,7 @@ RSpec.describe "The library itself" do
expect(err).to be_empty, "bundler should build as a gem without warnings, but\n#{err}"
ensure
- FileUtils.rm("bundler-#{Bundler::VERSION}.gem")
+ root.join("bundler-#{Bundler::VERSION}.gem").rmtree
end
end
end