summaryrefslogtreecommitdiff
path: root/spec/bundler/bundler
diff options
context:
space:
mode:
authorJosef Šimánek <josef.simanek@gmail.com>2021-10-23 23:30:35 +0200
committerHiroshi SHIBATA <hsbt@ruby-lang.org>2021-10-29 18:00:46 +0900
commitb179166421af52648ab84c0f82580cffef5a80d3 (patch)
treeb59bef50a4e0a81ad2a377f2861341e82904dbf1 /spec/bundler/bundler
parentfd17ae8205d2835ce75c7b9c091df92673d60430 (diff)
[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
Diffstat (limited to 'spec/bundler/bundler')
-rw-r--r--spec/bundler/bundler/fetcher/downloader_spec.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/bundler/bundler/fetcher/downloader_spec.rb b/spec/bundler/bundler/fetcher/downloader_spec.rb
index 4d3dff3a89..94a0993a54 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
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