diff options
author | chrismo <chrismo@clabs.org> | 2016-06-22 00:26:21 -0500 |
---|---|---|
committer | chrismo <chrismo@clabs.org> | 2016-07-08 19:35:57 -0500 |
commit | 00b8064c4f69a2ff50875dc2268d79714bc4a113 (patch) | |
tree | 28fdefc552fda08eced7a3c76e659e287082c958 | |
parent | 861eb2b00b99516f4c43f4be5380bf00e2039416 (diff) | |
download | bundler-00b8064c4f69a2ff50875dc2268d79714bc4a113.tar.gz |
Moved half-arsed debug test to its own test
-rw-r--r-- | spec/bundler/gem_version_promoter_spec.rb | 10 | ||||
-rw-r--r-- | spec/commands/update_spec.rb | 4 |
2 files changed, 12 insertions, 2 deletions
diff --git a/spec/bundler/gem_version_promoter_spec.rb b/spec/bundler/gem_version_promoter_spec.rb index 8c9660e2ac..10e1b3cb40 100644 --- a/spec/bundler/gem_version_promoter_spec.rb +++ b/spec/bundler/gem_version_promoter_spec.rb @@ -155,5 +155,15 @@ describe Bundler::GemVersionPromoter do end end end + + context "debug output" do + it "should not kerblooie on its own debug output" do + gvp = unlocking(:level => :patch) + dep = Bundler::DepProxy.new(dep("foo", "1.2.0").first, "ruby") + result = gvp.send(:debug_format_result, dep, [build_spec_group("foo", "1.2.0"), + build_spec_group("foo", "1.3.0")]) + expect(result.class).to eq Array + end + end end end diff --git a/spec/commands/update_spec.rb b/spec/commands/update_spec.rb index 5db8878ac1..cd23c4891d 100644 --- a/spec/commands/update_spec.rb +++ b/spec/commands/update_spec.rb @@ -449,7 +449,7 @@ describe "bundle update conservative" do should_be_installed "foo 1.0.1" end - it "single gem without dependencies update all with debugging" do + it "single gem without dependencies update all" do build_repo4 do build_gem "foo", %w(1.0.0 1.0.1 1.1.0 2.0.0) end @@ -464,7 +464,7 @@ describe "bundle update conservative" do gem 'foo' G - bundle "update --patch", :env => { "DEBUG_RESOLVER" => true } + bundle "update --patch" should_be_installed "foo 1.0.1" end |