method
before_setup
v2_1_10 -
Show latest stable
- Class:
MiniTest::Unit::LifecycleHooks
before_setup()public
Runs before every test, before setup. This hook is meant for libraries to extend minitest. It is not meant to be used by test developers.
As a simplistic example:
module MyMinitestPlugin def before_setup super # ... stuff to do before setup is run end def after_setup # ... stuff to do after setup is run super end def before_teardown super # ... stuff to do before teardown is run end def after_teardown # ... stuff to do after teardown is run super end end class MiniTest::Unit::TestCase include MyMinitestPlugin end