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:
parent
fd17ae8205
commit
b179166421
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue