Module: Hoe::Minitest
- Defined in:
- lib/hoe/minitest.rb
Instance Method Summary collapse
Instance Method Details
#define_minitest_tasks ⇒ Object
19 20 21 22 23 24 25 |
# File 'lib/hoe/minitest.rb', line 19 def define_minitest_tasks self.testlib = :minitest # make sure we use the gemmed minitest on 1.9 self.test_prelude = 'gem "minitest"' unless self.name == "minitest" or ENV["MT_NO_ISOLATE"] end |
#initialize_minitest ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/hoe/minitest.rb', line 7 def initialize_minitest dir = "../../minitest/dev/lib" Hoe.add_include_dirs dir if File.directory? dir gem "minitest" require "minitest" version = Minitest::VERSION.split(/\./).first(2).join(".") dependency "minitest", "~> #{version}", :development unless self.name == "minitest" or ENV["MT_NO_ISOLATE"] end |