module Minitest::Hooks

def self.included(mod)

work on a class that directly includes this module.
module in the class that before(:all) and after(:all) methods
Add the class methods to the class. Also, include an additional
def self.included(mod)
  super
  mod.instance_exec do
    extend(Minitest::Hooks::ClassMethods)
  end
end

def after_all

Empty method, necessary so that super calls in spec subclasses work.
def after_all
end

def around

Method that just yields, so that super calls in spec subclasses work.
def around
  yield
end

def around_all

Method that just yields, so that super calls in spec subclasses work.
def around_all
  yield
end

def before_all

Empty method, necessary so that super calls in spec subclasses work.
def before_all
end

def time_it

Run around hook inside, since time_it is run around every spec.
def time_it
  super do
    around do
      yield
    end
  end
end