lib/test/unit/testcase.rb in test-unit-3.2.1 vs lib/test/unit/testcase.rb in test-unit-3.2.2
- old
+ new
@@ -35,52 +35,54 @@
# collecting its results into a Test::Unit::TestResult object.
#
# You can run two hooks before/after a TestCase run.
#
# Example:
- # class TestMyClass < Test::Unit::TestCase
- # class << self
- # def startup
+ #
+ # class TestMyClass < Test::Unit::TestCase
+ # class << self
+ # def startup
+ # ...
+ # end
+ #
+ # def shutdown
+ # ...
+ # end
+ # end
+ #
+ # def setup
# ...
# end
#
- # def shutdown
+ # def cleanup
# ...
# end
- # end
#
- # def setup
- # ...
- # end
+ # def teardown
+ # ...
+ # end
#
- # def cleanup
- # ...
- # end
+ # def test_my_method1
+ # ...
+ # end
#
- # def teardown
- # ...
+ # def test_my_method2
+ # ...
+ # end
# end
#
- # def test_my_method1
- # ...
- # end
- #
- # def test_my_method2
- # ...
- # end
- # end
- #
# Here is a call order:
- # * startup
- # * setup
- # * test_my_method1
- # * cleanup
- # * teardown
- # * setup
- # * test_my_method2
- # * cleanup
- # * teardown
- # * shutdown
+ #
+ # 1. startup
+ # 1. setup
+ # 1. test_my_method1
+ # 1. cleanup
+ # 1. teardown
+ # 1. setup
+ # 1. test_my_method2
+ # 1. cleanup
+ # 1. teardown
+ # 1. shutdown
class TestCase
include Attribute
include Fixture
include ExceptionHandler
include ErrorHandler