Class: CI::Reporter::MiniTestError

Inherits:
FailureCore show all
Defined in:
lib/ci/reporter/minitest.rb

Instance Method Summary collapse

Constructor Details

#initialize(fault) ⇒ MiniTestError

Returns a new instance of MiniTestError.



49
# File 'lib/ci/reporter/minitest.rb', line 49

def initialize(fault) @fault = fault end

Instance Method Details

#error?Boolean

Returns:

  • (Boolean)


51
# File 'lib/ci/reporter/minitest.rb', line 51

def error?() true end

#failure?Boolean

Returns:

  • (Boolean)


50
# File 'lib/ci/reporter/minitest.rb', line 50

def failure?() false end

#locationObject



54
# File 'lib/ci/reporter/minitest.rb', line 54

def location() @fault.exception.backtrace.join("\n") end

#messageObject



53
# File 'lib/ci/reporter/minitest.rb', line 53

def message() @fault.exception.message end

#nameObject



52
# File 'lib/ci/reporter/minitest.rb', line 52

def name() @fault.exception.class.name end