Class: MiniTest::Unit::TestCase

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

Direct Known Subclasses

Gem::TestCase, Test::Unit::TestCase

Constant Summary collapse

RUN_TEST_TRACE =
"#{__FILE__}:#{__LINE__+3}:in `run_test'".freeze

Instance Method Summary collapse

Instance Method Details

#run_test(name) ⇒ Object



856
857
858
859
860
861
862
# File 'lib/test/unit.rb', line 856

def run_test(name)
  progname, $0 = $0, "#{$0}: #{self.class}##{name}"
  self.__send__(name)
ensure
  $@.delete(RUN_TEST_TRACE) if $@
  $0 = progname
end