[前][次][番号順一覧][スレッド一覧]

ruby-changes:69512

From: Josef <ko1@a...>
Date: Fri, 29 Oct 2021 18:19:10 +0900 (JST)
Subject: [ruby-changes:69512] b179166421 (master): [rubygems/rubygems] Assert NoMethodError message only partialy in downloader_spec.

https://git.ruby-lang.org/ruby.git/commit/?id=b179166421

From b179166421af52648ab84c0f82580cffef5a80d3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Josef=20=C5=A0im=C3=A1nek?= <josef.simanek@g...>
Date: Sat, 23 Oct 2021 23:30:35 +0200
Subject: [rubygems/rubygems] Assert NoMethodError message only partialy in
 downloader_spec. - latest ruby adds error_highlight gem introducing backtrace
 into exception message

https://github.com/rubygems/rubygems/commit/08c70f9dd0
---
 spec/bundler/bundler/fetcher/downloader_spec.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/spec/bundler/bundler/fetcher/downloader_spec.rb b/spec/bundler/bundler/fetcher/downloader_spec.rb
index 4d3dff3a898..94a0993a54c 100644
--- a/spec/bundler/bundler/fetcher/downloader_spec.rb
+++ b/spec/bundler/bundler/fetcher/downloader_spec.rb
@@ -193,7 +193,7 @@ RSpec.describe Bundler::Fetcher::Downloader do https://github.com/ruby/ruby/blob/trunk/spec/bundler/bundler/fetcher/downloader_spec.rb#L193
         let(:message) { "undefined method 'undefined_method_call'" }
 
         it "should raise the original NoMethodError" do
-          expect { subject.request(uri, options) }.to raise_error(NoMethodError, "undefined method 'undefined_method_call'")
+          expect { subject.request(uri, options) }.to raise_error(NoMethodError, /undefined method 'undefined_method_call'/)
         end
       end
     end
-- 
cgit v1.2.1


--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]