Parent

CI::Reporter::Failure

Factory for constructing either a CI::Reporter::TestUnitFailure or CI::Reporter::TestUnitError depending on the result of the test.

Public Class Methods

new(fault, type = nil, meth = nil) click to toggle source
# File lib/ci/reporter/minitest.rb, line 12
def self.new(fault, type = nil, meth = nil)
  return MiniTestSkipped.new(fault) if type == :skip
  return MiniTestFailure.new(fault, meth) if type == :failure
  MiniTestError.new(fault)
end
notification_constant?() click to toggle source
# File lib/ci/reporter/test_unit.rb, line 24
def self.notification_constant?
  if CONST_DEFINED_ARITY == 1 # 1.8.7 varieties
    Test::Unit.const_defined?(:Notification)
  else
    Test::Unit.const_defined?(:Notification, false)
  end
end
omission_constant?() click to toggle source
# File lib/ci/reporter/test_unit.rb, line 16
def self.omission_constant?
  if CONST_DEFINED_ARITY == 1 # 1.8.7 varieties
    Test::Unit.const_defined?(:Omission)
  else
    Test::Unit.const_defined?(:Omission, false)
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.