aboutsummaryrefslogtreecommitdiffstats
path: root/spec/ruby/core/regexp/match_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/core/regexp/match_spec.rb')
-rw-r--r--spec/ruby/core/regexp/match_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/core/regexp/match_spec.rb b/spec/ruby/core/regexp/match_spec.rb
index 81d7c32898..f796febc86 100644
--- a/spec/ruby/core/regexp/match_spec.rb
+++ b/spec/ruby/core/regexp/match_spec.rb
@@ -104,7 +104,7 @@ describe "Regexp#match" do
ruby_version_is "2.7"..."3.0" do
it "warns the deprecation when the given argument is nil" do
- -> { /foo/.match(nil) }.should complain(/given argument is nil; this will raise a TypeError in the next release/)
+ -> { /foo/.match(nil) }.should complain(/given argument is nil/)
end
end
@@ -155,7 +155,7 @@ describe "Regexp#match?" do
ruby_version_is "2.7"..."3.0" do
it "warns the deprecation" do
- -> { /./.match?(nil) }.should complain(/given argument is nil; this will raise a TypeError in the next release/)
+ -> { /./.match?(nil) }.should complain(/given argument is nil/)
end
end