Sha256: 13e439ab046a9fd8d7a7fb2dee5f675bb12cf5c5d18ab5a2addac0f82b223e9a

Contents?: true

Size: 299 Bytes

Versions: 1

Compression:

Stored size: 299 Bytes

Contents

module Minitest
  class UnexpectedError
    alias :original_backtrace :backtrace

    def backtrace
      begin
        error.stored_power_trace.to_backtrace(extra_info_indent: 8)
      rescue => e
        PowerTrace.print_power_trace_error(e)
        original_backtrace
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
power_trace-0.3.0 lib/power_trace/integrations/minitest.rb