diff options
author | Sutou Kouhei <kou@clear-code.com> | 2020-01-19 07:10:19 +0900 |
---|---|---|
committer | Sutou Kouhei <kou@clear-code.com> | 2020-01-19 07:13:41 +0900 |
commit | 51007446a75b27dc4e9ceff28f0a258e101696f2 (patch) | |
tree | fc1e09655f76ebc8dd8635762cdfec52f7274665 /spec/install | |
parent | 482e752e515c701b371d706ed7a1db0ee48f26a0 (diff) | |
download | bundler-51007446a75b27dc4e9ceff28f0a258e101696f2.tar.gz |
Add support for BUNDLER_ prefixed debug environment variables
DEBUG_RESOLVER is used in RubyGems too. So we can't enable it only for
Bundler.
Diffstat (limited to 'spec/install')
-rw-r--r-- | spec/install/gems/resolving_spec.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/install/gems/resolving_spec.rb b/spec/install/gems/resolving_spec.rb index d0448ca30b..323b28fdb1 100644 --- a/spec/install/gems/resolving_spec.rb +++ b/spec/install/gems/resolving_spec.rb @@ -69,6 +69,20 @@ RSpec.describe "bundle install with install-time dependencies" do expect(the_bundle).to include_gems "net_a 1.0", "net_b 1.0", "net_c 1.0", "net_d 1.0", "net_e 1.0" end + context "with ENV['BUNDLER_DEBUG_RESOLVER'] set" do + it "produces debug output" do + gemfile <<-G + source "#{file_uri_for(gem_repo1)}" + gem "net_c" + gem "net_e" + G + + bundle :install, :env => { "BUNDLER_DEBUG_RESOLVER" => "1" } + + expect(err).to include("Creating possibility state for net_c") + end + end + context "with ENV['DEBUG_RESOLVER'] set" do it "produces debug output" do gemfile <<-G |