method

run_teardown_hooks

ruby latest stable - Class: MiniTest::Unit::TestCase

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_9_3_392) is shown here.

run_teardown_hooks()
public

No documentation available.

# File lib/minitest/unit.rb, line 1143
      def run_teardown_hooks # :nodoc:
        self.class.teardown_hooks.reverse.each do |hook|
          if hook.respond_to?(:arity) && hook.arity == 1
            hook.call(self)
          else
            hook.call
          end
        end
      end