class CI::Reporter::TestUnitError
Wrapper around a Test::Unit
error to be used by the test suite
to interpret results.
Public Class Methods
new(fault)
click to toggle source
# File lib/ci/reporter/test_unit.rb, line 44 def initialize(fault) @fault = fault end
Public Instance Methods
error?()
click to toggle source
# File lib/ci/reporter/test_unit.rb, line 46 def error?() true end
failure?()
click to toggle source
# File lib/ci/reporter/test_unit.rb, line 45 def failure?() false end
location()
click to toggle source
# File lib/ci/reporter/test_unit.rb, line 49 def location() @fault.exception.backtrace.join("\n") end
message()
click to toggle source
# File lib/ci/reporter/test_unit.rb, line 48 def message() @fault.exception.message end
name()
click to toggle source
# File lib/ci/reporter/test_unit.rb, line 47 def name() @fault.exception.class.name end