diff options
Diffstat (limited to 'test/ruby/test_call.rb')
-rw-r--r-- | test/ruby/test_call.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/ruby/test_call.rb b/test/ruby/test_call.rb index 18203ce731..2a1b671cac 100644 --- a/test/ruby/test_call.rb +++ b/test/ruby/test_call.rb @@ -50,9 +50,9 @@ class TestCall < Test::Unit::TestCase o = nil 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 {}} + assert_nothing_raised(NoMethodError) {o&.x = raise} + assert_nothing_raised(NoMethodError) {o&.x *= raise} + assert_nothing_raised(NoMethodError) {o&.x *= raise; nil} end def test_safe_call_evaluate_arguments_only_method_call_is_made |