diff options
Diffstat (limited to 'test/ruby/test_exception.rb')
-rw-r--r-- | test/ruby/test_exception.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_exception.rb b/test/ruby/test_exception.rb index a92050c1d3..c71c7dfc64 100644 --- a/test/ruby/test_exception.rb +++ b/test/ruby/test_exception.rb @@ -618,4 +618,8 @@ end.join e = assert_raise(exc, bug) {raise exc, {}} assert_equal({}, e.arg, bug) end + + def test_anonymous_message + assert_in_out_err([], "raise Class.new(RuntimeError), 'foo'", [], /foo\n/) + end end |