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