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
- #minitest? ⇒ Boolean readonly
Instance Method Summary
Instance Attribute Details
#minitest? ⇒ Boolean
(readonly)
[ GitHub ]
# File 'lib/hoe/minitest.rb', line 7
def minitest? self.name == "minitest" end
Instance Method Details
#define_minitest_tasks
[ GitHub ]# File 'lib/hoe/minitest.rb', line 25
def define_minitest_tasks self.testlib = :minitest # make sure we use the gemmed minitest on 1.9 self.test_prelude = 'gem "minitest"' unless minitest? or ENV["MT_NO_ISOLATE"] end
#initialize_minitest
[ GitHub ]# File 'lib/hoe/minitest.rb', line 11
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