diff --git a/test/ripper/test_parser_events.rb b/test/ripper/test_parser_events.rb index 1d2c501c3b..eb423b397e 100644 --- a/test/ripper/test_parser_events.rb +++ b/test/ripper/test_parser_events.rb @@ -485,6 +485,12 @@ class TestRipper::ParserEvents < Test::Unit::TestCase assert_equal(1, width) end + def test_unterminated_heredoc + assert_match("can't find string \"a\" anywhere before EOF", compile_error("<