1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[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
This commit is contained in:
Josef Šimánek 2021-10-23 23:30:35 +02:00 committed by Hiroshi SHIBATA
parent fd17ae8205
commit b179166421
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -193,7 +193,7 @@ RSpec.describe Bundler::Fetcher::Downloader do
let(:message) { "undefined method 'undefined_method_call'" } let(:message) { "undefined method 'undefined_method_call'" }
it "should raise the original NoMethodError" do 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 end
end end