Method deprecated or moved
This method is deprecated or moved on the latest stable version.
The last existing version (v2_1_10) is shown here.
before(type = nil, &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.
# File lib/minitest/spec.rb, line 168
def before type = nil, &block
define_method :setup do
super()
self.instance_eval(&block)
end
end