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


128
129
130
# File 'lib/test/unit/pending.rb', line 128

def pendings
  @pendings
end

Instance Method Details

#add_pending(pending) ⇒ Object

Records a Test::Unit::Pending.


131
132
133
134
135
# File 'lib/test/unit/pending.rb', line 131

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

#pending_countObject

Returns the number of pendings this TestResult has recorded.


139
140
141
# File 'lib/test/unit/pending.rb', line 139

def pending_count
  @pendings.size
end