summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_call.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ruby/test_call.rb b/test/ruby/test_call.rb
index 4496d78210..18203ce731 100644
--- a/test/ruby/test_call.rb
+++ b/test/ruby/test_call.rb
@@ -52,6 +52,7 @@ class TestCall < Test::Unit::TestCase
assert_nil(o&.x)
assert_nothing_raised(NoMethodError) {o&.x = 6}
assert_nothing_raised(NoMethodError) {o&.x *= 7}
+ assert_nothing_raised(NoMethodError) {o&.x *= 8; [].each {}}
end
def test_safe_call_evaluate_arguments_only_method_call_is_made