summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2018-09-07 21:24:43 -0300
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2018-09-07 21:24:43 -0300
commita87ac92cff58c1cdb1684040a3443e506b5462ea (patch)
treee42dee4e592c560c3dc4a57fd25f0386a9010f0c
parent2ca10862800c68551f69c48092e1b408d390c8e2 (diff)
downloadbundler-clean_local_test_run.tar.gz
Confirm this fix has a regression specclean_local_test_run
-rw-r--r--.travis.yml2
-rw-r--r--lib/bundler/shared_helpers.rb4
2 files changed, 3 insertions, 3 deletions
diff --git a/.travis.yml b/.travis.yml
index 6c75bb52a5..3a2af3cf35 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,5 +1,5 @@
language: ruby
-script: rake spec:travis
+script: bin/rspec spec/runtime/setup_spec.rb -e symlink
before_script:
- travis_retry rake -E 'module ::Bundler; VERSION = "0.0.0"; end' override_version
- travis_retry rake spec:travis:deps
diff --git a/lib/bundler/shared_helpers.rb b/lib/bundler/shared_helpers.rb
index 645aec95ec..a64550a5fe 100644
--- a/lib/bundler/shared_helpers.rb
+++ b/lib/bundler/shared_helpers.rb
@@ -329,7 +329,7 @@ module Bundler
end
def bundler_ruby_lib
- resolve_path File.expand_path("../..", __FILE__)
+ File.expand_path("../..", __FILE__)
end
def clean_load_path
@@ -341,7 +341,7 @@ module Bundler
loaded_gem_paths = Bundler.rubygems.loaded_gem_paths
$LOAD_PATH.reject! do |p|
- next if resolve_path(p).start_with?(bundler_lib)
+ next if File.expand_path(p).start_with?(bundler_lib)
loaded_gem_paths.delete(p)
end
$LOAD_PATH.uniq!