diff options
Diffstat (limited to 'test/ruby/test_exception.rb')
-rw-r--r-- | test/ruby/test_exception.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb index aabe1464b1..f3afd674ab 100644 --- a/test/ruby/test_exception.rb +++ b/test/ruby/test_exception.rb @@ -523,9 +523,9 @@ end.join assert_equal(false, s.tainted?) end - def m; - m &->{return 0}; - 42; + def m + m(&->{return 0}) + 42 end def test_stackoverflow @@ -573,7 +573,6 @@ end.join def test_cause_reraised msg = "[Feature #8257]" - cause = nil e = assert_raise(RuntimeError) { begin raise msg |