method
before
v1_9_3_392 -
Show latest stable
- Class:
MiniTest::Spec
before(type = :each, &block)public
Define a ‘before’ action. Inherits the way normal methods should.
NOTE: type is ignored and is only there to make porting easier.
Equivalent to MiniTest::Unit::TestCase#setup.