From b530ded855e58083dfc13292876cfc633b6d3403 Mon Sep 17 00:00:00 2001 From: Samuel Giddins Date: Wed, 11 Nov 2015 21:36:09 -0600 Subject: [FriendlyErrors] Update specs for the release of 2.5.0 --- spec/bundler/friendly_errors_spec.rb | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/spec/bundler/friendly_errors_spec.rb b/spec/bundler/friendly_errors_spec.rb index 2eca85eb84..cac83aa6f5 100644 --- a/spec/bundler/friendly_errors_spec.rb +++ b/spec/bundler/friendly_errors_spec.rb @@ -14,7 +14,7 @@ describe Bundler, "friendly errors" do FileUtils.rm(Gem.configuration.config_file_name) end - it "reports a relevant friendly error message", :ruby => ">= 1.9" do + it "reports a relevant friendly error message", :ruby => ">= 1.9", :rubygems => "< 2.5.0" do gemfile <<-G source "file://#{gem_repo1}" gem "rack" @@ -28,6 +28,18 @@ describe Bundler, "friendly errors" do expect(out).not_to include("ERROR REPORT TEMPLATE") expect(exitstatus).to eq(25) if exitstatus end + + it "reports a relevant friendly error message", :ruby => ">= 1.9", :rubygems => ">= 2.5.0" do + gemfile <<-G + source "file://#{gem_repo1}" + gem "rack" + G + + bundle :install, :env => { "DEBUG" => true }, :expect_err => true + + expect(err).to include("Failed to load #{home(".gemrc")}") + expect(exitstatus).to eq(0) if exitstatus + end end it "rescues Thor::AmbiguousTaskError and raises SystemExit" do -- cgit v1.2.1