module MiniTest::Unit::Deprecated::Hooks

def _run_hooks hooks # :nodoc:

:nodoc:
def _run_hooks hooks # :nodoc:
  hooks.each do |hook|
    if hook.respond_to?(:arity) && hook.arity == 1
      hook.call(self)
    else
      hook.call
    end
  end
end