123456789_123456789_123456789_123456789_123456789_

Module: Hoe::Minitest

Do not use. This module is for internal use only.
Relationships & Source Files
Defined in: lib/hoe/minitest.rb

Instance Attribute Summary

Instance Method Summary

Instance Attribute Details

#minitest?Boolean (readonly)

[ GitHub ]

  
# File 'lib/hoe/minitest.rb', line 8

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

Instance Method Details

#define_minitest_tasks

[ GitHub ]

  
# File 'lib/hoe/minitest.rb', line 26

def define_minitest_tasks
  self.testlib = :minitest
end

#initialize_minitest

[ GitHub ]

  
# File 'lib/hoe/minitest.rb', line 12

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