class Minitest::UnexpectedError

Experimental RBS support (using type sampling data from the type_fusion project).

# sig/minitest.rbs

class Minitest::UnexpectedError < Minitest::Assertion
  def result_label: () -> String
end

def backtrace # :nodoc:

:nodoc:
def backtrace # :nodoc:
  self.error.backtrace
end

def initialize error # :nodoc:

:nodoc:
def initialize error # :nodoc:
  super "Unexpected exception"
  self.error = error
end

def message # :nodoc:

:nodoc:
def message # :nodoc:
  bt = Minitest.filter_backtrace(self.backtrace).join "\n    "
  "#{self.error.class}: #{self.error.message}\n    #{bt}"
end

def result_label # :nodoc:

Experimental RBS support (using type sampling data from the type_fusion project).

def result_label: () -> String

This signature was generated using 1 sample from 1 application.

:nodoc:
def result_label # :nodoc:
  "Error"
end