diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ruby/test_exception.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb index 88bd095228..a4a70eb5fc 100644 --- a/test/ruby/test_exception.rb +++ b/test/ruby/test_exception.rb @@ -700,7 +700,11 @@ end.join end def test_cause_at_end - assert_in_out_err([], <<-'end;', [], [/-: unexpected return\n/, /.*undefined local variable or method `n'.*\n/]) + errs = [ + /-: unexpected return\n/, + /.*undefined local variable or method `n'.*\n/, + ] + assert_in_out_err([], <<-'end;', [], errs) END{n}; END{return} end; end |