Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

I'm not sold on this... but don't declare minitest as a dependency if…

… MT_NO_ISOLATE defined in env. Helps with cross project testing against unpublished versions

[git-p4: depot-paths = "//src/minitest/dev/": change = 8471]
commit 2463e9f3e521a029a2a4dc5004a13634b397fa60 1 parent d35dba4
@zenspider zenspider authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 lib/hoe/minitest.rb
View
8 lib/hoe/minitest.rb
@@ -5,18 +5,22 @@ class Hoe
module Hoe::Minitest
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"
+ self.name == "minitest" or ENV["MT_NO_ISOLATE"]
end
def define_minitest_tasks
self.testlib = :minitest
# make sure we use the gemmed minitest on 1.9
- self.test_prelude = 'gem "minitest"'
+ self.test_prelude = 'gem "minitest"' unless
+ self.name == "minitest" or ENV["MT_NO_ISOLATE"]
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.