Class: MiniTest::Unit::TestCase

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

Overview

:nodoc: all

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



867
868
869
870
871
872
873
# File 'lib/test/unit.rb', line 867

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