[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 коммит произвёл Hiroshi SHIBATA
Родитель fd17ae8205
Коммит b179166421
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: F9CF13417264FAC2
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -193,7 +193,7 @@ RSpec.describe Bundler::Fetcher::Downloader do
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