Class: Test::Unit::TestResult

Inherits:
Object
  • Object
show all
Defined in:
lib/test/spec.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#add_disabled(name) ⇒ Object

Records a disabled test.



650
651
652
653
# File 'lib/test/spec.rb', line 650

def add_disabled(name)
  notify_listeners(FAULT, Test::Spec::Disabled.new(name))
  notify_listeners(CHANGED, self)
end

#add_pending(name) ⇒ Object



655
656
657
658
# File 'lib/test/spec.rb', line 655

def add_pending(name)
  notify_listeners(FAULT, Test::Spec::Pending.new(name))
  notify_listeners(CHANGED, self)
end