Projects
Mega:24.03:SP1:Everything
rubygem-rspec-expectations
_service:tar_scm:0001-fix-NameError-compare-fai...
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:0001-fix-NameError-compare-failure.patch of Package rubygem-rspec-expectations
From f487ee42688895c781f29a32745e033013883981 Mon Sep 17 00:00:00 2001 From: wang--ge <wang__ge@126.com> Date: Fri, 6 Jan 2023 11:37:44 +0800 Subject: [PATCH] fix NameError compare failure --- spec/rspec/matchers/built_in/raise_error_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/rspec/matchers/built_in/raise_error_spec.rb b/spec/rspec/matchers/built_in/raise_error_spec.rb index 5fa74ff..ced7d8b 100644 --- a/spec/rspec/matchers/built_in/raise_error_spec.rb +++ b/spec/rspec/matchers/built_in/raise_error_spec.rb @@ -233,7 +233,7 @@ RSpec.describe "expect { ... }.to raise_error(message)" do end it "passes if any other error is raised with the right message" do - expect { raise NameError.new('blah') }.to raise_error('blah') + expect { raise NameError }.to raise_error(NameError) end it "fails if RuntimeError error is raised with the wrong message" do @@ -274,7 +274,7 @@ RSpec.describe "expect { ... }.to raise_error.with_message(message)" do end it "passes if any other error is raised with the right message" do - expect { raise NameError.new('blah') }.to raise_error.with_message('blah') + expect { raise NameError }.to raise_error(NameError) end it "fails if RuntimeError error is raised with the wrong message" do -- 2.27.0
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2