summaryrefslogtreecommitdiff
path: root/spec/ruby/language
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/language')
-rw-r--r--spec/ruby/language/pattern_matching_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/language/pattern_matching_spec.rb b/spec/ruby/language/pattern_matching_spec.rb
index 1596b2b8d2..edc3826448 100644
--- a/spec/ruby/language/pattern_matching_spec.rb
+++ b/spec/ruby/language/pattern_matching_spec.rb
@@ -43,11 +43,11 @@ ruby_version_is "2.7" do
describe "warning" do
before do
ruby_version_is ""..."3.0" do
- @src = 'case 0; in a; end'
+ @src = 'case [0, 1]; in [a, b]; end'
end
ruby_version_is "3.0" do
- @src = '1 => a'
+ @src = '[0, 1] => [a, b]'
end
end