diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-05-07 23:56:16 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-05-16 15:44:53 -0400 |
commit | d5729d251b54d7272fd1e0d675c37b7ac5618a35 (patch) | |
tree | 211709203dde6d3fc932db5d344347fd2fc5ec49 /spec/spec_helper.rb | |
parent | 97c8e428318c6dab46ccef5c00d4c096d31d41fe (diff) | |
download | bundler-d5729d251b54d7272fd1e0d675c37b7ac5618a35.tar.gz |
Previous approach for not walking further up from test folderbetter_test_specific_file_searching
I tried monkeypatching the gemfile finder methods in hax.rb, but that
resulted in loading parts of bundler too early, and getting redefinition
warnings when loading them again from exe/bundle, resulting in actual
errors in some cases. The fix for that required eagerly loading the
monkeypatched parts of bundler, but that involves changing lib just for
the sake of making existing tests pass, and that's what the original
changes intend to avoid.
So, I'm just reverting to the previous approach of setting an
environment variable just for testing and check that.
Reverts 11597fef24274bf1542384512faed697d7f41e3b.
Diffstat (limited to 'spec/spec_helper.rb')
-rw-r--r-- | spec/spec_helper.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index ba7b362b5b..35cf8bfefb 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -25,6 +25,7 @@ $debug = false Spec::Manpages.setup unless Gem.win_platform? Spec::Rubygems.setup ENV["RUBYOPT"] = "#{ENV["RUBYOPT"]} -r#{Spec::Path.spec_dir}/support/hax.rb" +ENV["BUNDLE_SPEC_RUN"] = "true" # Don't wrap output in tests ENV["THOR_COLUMNS"] = "10000" |