cleanup(*method_names, &callback)
click to toggle source
def cleanup(*method_names, &callback)
register_fixture(:cleanup, *method_names, &callback)
end
fixture()
click to toggle source
def fixture
@fixture ||= Fixture.new(self)
end
setup(*method_names, &callback)
click to toggle source
def setup(*method_names, &callback)
register_fixture(:setup, *method_names, &callback)
end
teardown(*method_names, &callback)
click to toggle source
def teardown(*method_names, &callback)
register_fixture(:teardown, *method_names, &callback)
end
unregister_cleanup(*method_names_or_callbacks)
click to toggle source
def unregister_cleanup(*method_names_or_callbacks)
unregister_fixture(:cleanup, *method_names_or_callbacks)
end
unregister_setup(*method_names_or_callbacks)
click to toggle source
def unregister_setup(*method_names_or_callbacks)
unregister_fixture(:setup, *method_names_or_callbacks)
end
unregister_teardown(*method_names_or_callbacks)
click to toggle source
def unregister_teardown(*method_names_or_callbacks)
unregister_fixture(:teardown, *method_names_or_callbacks)
end