Files

Class/Module Index [+]

Quicksearch

Test::Unit::TestResultFailureSupport

Attributes

failures[R]

Public Instance Methods

add_failure(failure) click to toggle source

Records a Test::Unit::Failure.

# File lib/test/unit/failure.rb, line 107
def add_failure(failure)
  @failures << failure
  notify_fault(failure)
  notify_changed
end
failure_count() click to toggle source

Returns the number of failures this TestResult has recorded.

# File lib/test/unit/failure.rb, line 115
def failure_count
  @failures.size
end
failure_occurred?() click to toggle source
# File lib/test/unit/failure.rb, line 119
def failure_occurred?
  not @failures.empty?
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.