diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2018-09-09 14:48:46 -0300 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2018-09-17 20:34:44 -0300 |
commit | 6590fd50f71a0e4e0e3d1204299eb0d6d7768ca6 (patch) | |
tree | b264440d0acd8e55457bc406c8a4516534f98497 /spec/spec_helper.rb | |
parent | 75ac1fe72ae495a04f44a3701140c4e28eafefc1 (diff) | |
download | bundler-6590fd50f71a0e4e0e3d1204299eb0d6d7768ca6.tar.gz |
Friendlier solution for a problematic specfix_local_spec_failure
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 56094b72f5..228b9e5aa3 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -28,18 +28,6 @@ require "bundler/vendored_fileutils" require "uri" require "digest" -# Delete the default copy of Bundler that RVM installs for us when running in CI -require "fileutils" -if ENV.select {|k, _v| k =~ /TRAVIS/ }.any? && Gem::Version.new(Gem::VERSION) > Gem::Version.new("2.0") - Dir.glob(File.join(Gem::Specification.default_specifications_dir, "bundler*.gemspec")).each do |file| - FileUtils.rm_rf(file) - end - - Dir.glob(File.join(RbConfig::CONFIG["sitelibdir"], "bundler*")).each do |file| - FileUtils.rm_rf(file) - end -end - if File.expand_path(__FILE__) =~ %r{([^\w/\.-])} abort "The bundler specs cannot be run from a path that contains special characters (particularly #{$1.inspect})" end |