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.
after(type = nil, &block)
public
Define an ‘after’ action. Inherits the way normal methods should.
NOTE: type is ignored and is only there to make porting easier.
Equivalent to MiniTest::Unit::TestCase#teardown.
# File lib/minitest/spec.rb, line 182
def after type = nil, &block
define_method :teardown do
self.instance_eval(&block)
super()
end
end