1 require 'test/unit/failure'
2 require 'test/unit/error'
6 BACKTRACE_INFO_RE = /.+:\d+:in `.+?'/
8 alias_method :original_long_display, :long_display
10 extract_backtraces_re =
11 /^ \[(#{BACKTRACE_INFO_RE}(?:\n #{BACKTRACE_INFO_RE})+)\]:$/
12 original_long_display.gsub(extract_backtraces_re) do |backtraces|
13 $1.gsub(/^ (#{BACKTRACE_INFO_RE})/, '\1') + ':'
19 alias_method :original_long_display, :long_display
21 original_long_display.gsub(/^ (#{BACKTRACE_INFO_RE})/, '\1')