diff options
author | Andre Arko <andre@arko.net> | 2018-07-09 21:43:47 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2018-07-09 21:43:47 -0700 |
commit | 8779946b56c33d45855350482c00c828825d667d (patch) | |
tree | 8bf5a53774dcc74d25027d85fd27de49b652991c | |
parent | 67f026cc6aa3d1fccae250f8243dafab1f96cf74 (diff) | |
download | bundler-8779946b56c33d45855350482c00c828825d667d.tar.gz |
maybe this will resolve the intermittent Travis failures
-rw-r--r-- | spec/spec_helper.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 1d4d4b537e..f7a6b43d4b 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -31,8 +31,9 @@ require "digest" # Delete any copies of Bundler that have been dumped into site_ruby without # a gemspec. RubyGems cannot manage that Bundler, and so our tricks to make # sure that the correct version of Bundler loads will stop working. -Dir.glob(File.join(RbConfig::CONFIG["sitelibdir"], "bundler*")).each do |f| - FileUtils.rm_rf f +require "fileutils" +Dir.glob(File.join(RbConfig::CONFIG["sitelibdir"], "bundler*")).each do |file| + FileUtils.rm_rf(file) end if File.expand_path(__FILE__) =~ %r{([^\w/\.-])} |