Module: Test::Unit::Fixture::ClassMethods
Relationships & Source Files | |
Defined in: | lib/test/unit/fixture.rb |
Instance Method Summary
- #cleanup(*method_names, &callback)
- #fixture
- #setup(*method_names, &callback)
- #teardown(*method_names, &callback)
- #unregister_cleanup(*method_names_or_callbacks)
- #unregister_setup(*method_names_or_callbacks)
- #unregister_teardown(*method_names_or_callbacks)
- #register_fixture(fixture, *method_names, &callback) private
- #unregister_fixture(fixture, *method_names_or_callbacks) private
Instance Method Details
#cleanup(*method_names, &callback)
[ GitHub ]# File 'lib/test/unit/fixture.rb', line 180
def cleanup(*method_names, &callback) register_fixture(:cleanup, *method_names, &callback) end
#fixture
[ GitHub ]#register_fixture(fixture, *method_names, &callback) (private)
[ GitHub ]#setup(*method_names, &callback)
[ GitHub ]# File 'lib/test/unit/fixture.rb', line 172
def setup(*method_names, &callback) register_fixture(:setup, *method_names, &callback) end
#teardown(*method_names, &callback)
[ GitHub ]# File 'lib/test/unit/fixture.rb', line 188
def teardown(*method_names, &callback) register_fixture(:teardown, *method_names, &callback) end
#unregister_cleanup(*method_names_or_callbacks)
[ GitHub ]# File 'lib/test/unit/fixture.rb', line 184
def unregister_cleanup(*method_names_or_callbacks) unregister_fixture(:cleanup, *method_names_or_callbacks) end
#unregister_fixture(fixture, *method_names_or_callbacks) (private)
[ GitHub ]#unregister_setup(*method_names_or_callbacks)
[ GitHub ]# File 'lib/test/unit/fixture.rb', line 176
def unregister_setup(*method_names_or_callbacks) unregister_fixture(:setup, *method_names_or_callbacks) end
#unregister_teardown(*method_names_or_callbacks)
[ GitHub ]# File 'lib/test/unit/fixture.rb', line 192
def unregister_teardown(*method_names_or_callbacks) unregister_fixture(:teardown, *method_names_or_callbacks) end