For some reason the block execution gets altered from the file name to <internal:numeric>:237. Since there is not much about this we can do, and the line before still displays where the error was, we make the expectation more generic.
Backtraces were also improved by showing (eval at file/name.rb:00) ... instead of just (eval) .... Update backtrace cleaner to use regex to replace the eval string.
Backtraces slightly changed in Ruby 3.3.
For some reason the block execution gets altered from the file name to
<internal:numeric>:237
. Since there is not much about this we can do, and the line before still displays where the error was, we make the expectation more generic.Backtraces were also improved by showing
(eval at file/name.rb:00) ...
instead of just(eval) ...
. Update backtrace cleaner to use regex to replace the eval string.