summaryrefslogtreecommitdiff
path: root/test/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'test/ruby')
-rw-r--r--test/ruby/test_string.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ruby/test_string.rb b/test/ruby/test_string.rb
index 6445832798..e4c14fd488 100644
--- a/test/ruby/test_string.rb
+++ b/test/ruby/test_string.rb
@@ -3756,12 +3756,12 @@ CODE
fallback = proc { raise }
RUBY
"method" => <<~RUBY,
- def my_method = raise
+ def my_method(_str) = raise
fallback = method(:my_method)
RUBY
"aref" => <<~RUBY,
fallback = Object.new
- def fallback.[] = raise
+ def fallback.[](_str) = raise
RUBY
}.each do |type, code|
assert_no_memory_leak([], '', <<~RUBY, "fallback type is #{type}", rss: true)