Module: Hoe::Minitest
- Defined in:
- lib/hoe/minitest.rb
Instance Method Summary collapse
Instance Method Details
#define_minitest_tasks ⇒ Object
26 27 28 |
# File 'lib/hoe/minitest.rb', line 26 def define_minitest_tasks self.testlib = :minitest end |
#initialize_minitest ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 |
# 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 |
#minitest? ⇒ Boolean
8 9 10 |
# File 'lib/hoe/minitest.rb', line 8 def minitest? self.name == "minitest" end |