Module: Hoe::Minitest

Defined in:
lib/hoe/minitest.rb

Instance Method Summary collapse

Instance Method Details

#define_minitest_tasksObject



16
17
18
19
20
21
# File 'lib/hoe/minitest.rb', line 16

def define_minitest_tasks
  self.testlib = :minitest

  # make sure we use the gemmed minitest on 1.9
  self.test_prelude = 'gem "minitest"'
end

#initialize_minitestObject



7
8
9
10
11
12
13
14
# File 'lib/hoe/minitest.rb', line 7

def initialize_minitest
  gem "minitest"
  require 'minitest/unit'
  version = MiniTest::Unit::VERSION.split(/\./).first(2).join(".")

  dependency 'minitest', "~> #{version}", :development unless
    self.name == "minitest"
end