Class: UnitTest
- Defined in:
- lib/drumherum/unit_test.rb
Overview
You will see a status display for your tests if you use UnitTest instead of Test::Unit::TestCase:
Direct Known Subclasses
Instance Method Summary collapse
-
#test0 ⇒ Object
looks like a test, but just prints status information.
Instance Method Details
#test0 ⇒ Object
looks like a test, but just prints status information
9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/drumherum/unit_test.rb', line 9 def test0 name = self.class.to_s.gsub(/^.*::/, '') name.gsub!(/^Test/, '') name.gsub!(/^[0-9]+/, '') if name != 'UnitTest' print "\n #{name} " else puts puts end end |