summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Rodríguez <deivid.rodriguez@riseup.net>2018-09-09 09:21:49 -0300
committerDavid Rodríguez <deivid.rodriguez@riseup.net>2018-09-17 20:34:01 -0300
commit8b35686ed50570833abaf91fb86921b01fd554e6 (patch)
treef97e2251249a4a31eb9fe2ce7ba8215251e27757
parentc7ed6a2cda1963da6b1cdd0bfcffd8616527a9aa (diff)
downloadbundler-8b35686ed50570833abaf91fb86921b01fd554e6.tar.gz
Improve spec
There's an option to explicitly not pass lib to the LOAD_PATH.
-rw-r--r--spec/runtime/setup_spec.rb9
1 files changed, 1 insertions, 8 deletions
diff --git a/spec/runtime/setup_spec.rb b/spec/runtime/setup_spec.rb
index 7fec55c4c3..3d8ab4e0be 100644
--- a/spec/runtime/setup_spec.rb
+++ b/spec/runtime/setup_spec.rb
@@ -886,14 +886,7 @@ end
ENV["GEM_PATH"] = symlinked_gem_home.path
- ruby <<-R
- if $LOAD_PATH.include?("#{bundler_lib}")
- # We should use bundler from GEM_PATH for this test, so we should
- # remove path to the bundler source tree
- $LOAD_PATH.delete("#{bundler_lib}")
- else
- raise "We don't have #{bundler_lib} in $LOAD_PATH"
- end
+ ruby <<-R, :no_lib => true
puts (require 'bundler/setup')
R