Class Test::Unit::TestCase
In: test/unit/testcase.rb
Parent: Object
Ties everything together. If you subclass and add your own test methods, it takes care of making them into tests and wrapping those tests into a suite. It also does the nitty-gritty of actually running an individual test and collecting its results into a Test::Unit::TestResult object.
Methods
name    new    passed?    run    set_up    suite    tear_down    to_s   
Attributes
:method_name  [R] 
Included modules
Assertions
Public Class methods
new(test_method_name)
Creates a new instance of the fixture for running the test represented by test_method_name.
suite()
Rolls up all of the test* methods in the fixture into one suite, creating a new instance of the fixture for each method.
Public Instance methods
run(result)
Runs the individual test method represented by this instance of the fixture, collecting statistics, failures and errors in result.
set_up()
Called before after every test method runs. Can be used to set up fixture information.
tear_down()
Called after every test method runs. Can be used to tear down fixture information.
passed?()
Returns whether this individual test passed or not. Primarily for use in tear_down so that artifacts can be left behind if the test fails.
name()
Returns a human-readable name for the specific test that this instance of TestCase represents.
to_s()
Overriden to return name.