diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2018-09-09 09:21:49 -0300 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2018-09-17 20:34:01 -0300 |
commit | 8b35686ed50570833abaf91fb86921b01fd554e6 (patch) | |
tree | f97e2251249a4a31eb9fe2ce7ba8215251e27757 | |
parent | c7ed6a2cda1963da6b1cdd0bfcffd8616527a9aa (diff) | |
download | bundler-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.rb | 9 |
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 |