module Hoe::Minitest

def define_minitest_tasks

def define_minitest_tasks
  self.testlib = :minitest
end

def initialize_minitest

def initialize_minitest
  unless minitest? then
    dir = "../../minitest/dev/lib"
    Hoe.add_include_dirs dir if File.directory? dir
  end
  gem "minitest"
  require "minitest"
  version = Minitest::VERSION.split(".").first(2).join "."
  dependency "minitest", "~> #{version}", :development unless
    minitest? or ENV["MT_NO_ISOLATE"]
end

def minitest?

def minitest?
  self.name == "minitest"
end