diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2023-04-18 10:59:25 +0900 |
---|---|---|
committer | git <svn-admin@ruby-lang.org> | 2023-04-19 06:56:22 +0000 |
commit | 8b95b33a9d114d2f9f3852c289722c8393d10fd8 (patch) | |
tree | 6ef2d963b5c87d2a2eb97b050a7faa81a345cfb7 /spec | |
parent | 92ab4e41dd6261d6f2fe04011508359544535164 (diff) | |
download | ruby-8b95b33a9d114d2f9f3852c289722c8393d10fd8.tar.gz |
[rubygems/rubygems] Bundler::YAMLSerializer.load couldn't raise error when invalid yaml was provided
https://github.com/rubygems/rubygems/commit/cfcfde04c7
Diffstat (limited to 'spec')
-rw-r--r-- | spec/bundler/bundler/friendly_errors_spec.rb | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/spec/bundler/bundler/friendly_errors_spec.rb b/spec/bundler/bundler/friendly_errors_spec.rb index 37afe488f3..17ca15ed8b 100644 --- a/spec/bundler/bundler/friendly_errors_spec.rb +++ b/spec/bundler/bundler/friendly_errors_spec.rb @@ -5,29 +5,6 @@ require "bundler/friendly_errors" require "cgi" RSpec.describe Bundler, "friendly errors" do - context "with invalid YAML in .gemrc" do - before do - File.open(home(".gemrc"), "w") do |f| - f.write "invalid: yaml: hah" - end - end - - after do - FileUtils.rm(home(".gemrc")) - end - - it "reports a relevant friendly error message" do - gemfile <<-G - source "#{file_uri_for(gem_repo1)}" - gem "rack" - G - - bundle :install, :env => { "DEBUG" => "true" } - - expect(err).to include("Failed to load #{home(".gemrc")}") - end - end - it "calls log_error in case of exception" do exception = Exception.new expect(Bundler::FriendlyErrors).to receive(:exit_status).with(exception).and_return(1) |