diff options
author | NARUSE, Yui <naruse@airemix.jp> | 2019-12-04 01:26:27 +0900 |
---|---|---|
committer | NARUSE, Yui <naruse@airemix.jp> | 2019-12-04 06:40:54 +0900 |
commit | a705f6472c3e34422776d886bbc9f98676d8c0eb (patch) | |
tree | dac18a8e5a29648e65b6e1c948a9a2248bc92ace /spec | |
parent | 34a66b1f36e9a065cf8433598b3fce03ce2c711e (diff) |
Revert "Improve warning message"
This reverts commit 31110d820cc1258cbc84b46ecc65b254c7d5529a.
Diffstat (limited to 'spec')
-rw-r--r-- | spec/ruby/core/regexp/match_spec.rb | 4 |
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 |