Module: Test::Unit::TestResultPendingSupport

Included in:
TestResult
Defined in:
lib/test/unit/pending.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#pendingsObject (readonly)

Returns the value of attribute pendings.



119
120
121
# File 'lib/test/unit/pending.rb', line 119

def pendings
  @pendings
end

Instance Method Details

#add_pending(pending) ⇒ Object

Records a Test::Unit::Pending.



122
123
124
125
126
# File 'lib/test/unit/pending.rb', line 122

def add_pending(pending)
  @pendings << pending
  notify_fault(pending)
  notify_changed
end

#pending_countObject

Returns the number of pendings this TestResult has recorded.



130
131
132
# File 'lib/test/unit/pending.rb', line 130

def pending_count
  @pendings.size
end