This method is deprecated or moved on the latest stable version.
The last existing version (v1_9_3_392) is shown here.
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.
# File lib/minitest/spec.rb, line 170
def self.before type = :each, &block
raise "unsupported before type: #{type}" unless type == :each
add_setup_hook {|tc| tc.instance_eval(&block) }
end