diff options
author | Koichi Sasada <ko1@atdot.net> | 2020-11-01 13:55:54 +0900 |
---|---|---|
committer | Koichi Sasada <ko1@atdot.net> | 2020-11-01 13:55:54 +0900 |
commit | 0e33028d69a25c512df1a44f930652c9a5c5b153 (patch) | |
tree | 87d77f4337baacb44eb0a302446c043762a6eb73 /spec/ruby/language/pattern_matching_spec.rb | |
parent | b1e7c3a31f0a946a6a435acb983126cc6d7693be (diff) |
use one-line pattern matching for warning tests
Diffstat (limited to 'spec/ruby/language/pattern_matching_spec.rb')
-rw-r--r-- | spec/ruby/language/pattern_matching_spec.rb | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/spec/ruby/language/pattern_matching_spec.rb b/spec/ruby/language/pattern_matching_spec.rb index 2d22ec7e64..e653b54840 100644 --- a/spec/ruby/language/pattern_matching_spec.rb +++ b/spec/ruby/language/pattern_matching_spec.rb @@ -41,11 +41,9 @@ ruby_version_is "2.7" do it "warns about pattern matching is experimental feature" do -> { eval <<~RUBY - case 0 - in 0 - end + 1 => a RUBY - }.should complain(/warning: Pattern matching is experimental, and the behavior may change in future versions of Ruby!/) + }.should complain(/warning: One-line pattern matching is experimental, and the behavior may change in future versions of Ruby!/) end it "binds variables" do |