зеркало из https://github.com/github/ruby.git
[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:
Родитель
fd17ae8205
Коммит
b179166421
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче