Skip to content

Commit 48f589f

Browse files
authored
Merge pull request rails#52943 from yahonda/syntax_error_or_syntax_errors_found
Address `DebugExceptionsTest` failures against Ruby with Prism parser
2 parents cea5cd3 + 108f38d commit 48f589f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

actionpack/test/dispatch/debug_exceptions_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,7 @@ def self.build_app(app, *args)
722722

723723
assert_response 500
724724
assert_select "#Application-Trace-0" do
725-
assert_select "code", /syntax error, unexpected/
725+
assert_select "code", /syntax error, unexpected|syntax errors found/
726726
end
727727
end
728728

@@ -749,7 +749,7 @@ def self.build_app(app, *args)
749749

750750
assert_response 500
751751
assert_select "#Application-Trace-0" do
752-
assert_select "code", /syntax error, unexpected/
752+
assert_select "code", /syntax error, unexpected|syntax errors found/
753753
end
754754
assert_match %r{Showing <i>.*test/dispatch/debug_exceptions_test.rb</i>}, body
755755
end

0 commit comments

Comments
 (0)