Permalink
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]
  • Loading branch information...
1 parent d35dba4 commit 2463e9f3e521a029a2a4dc5004a13634b397fa60 @zenspider zenspider committed Apr 30, 2013
Showing with 6 additions and 2 deletions.
  1. +6 −2 lib/hoe/minitest.rb
View
@@ -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

0 comments on commit 2463e9f

Please sign in to comment.