test/test_hoe_test.rb in hoe-3.6.1 vs test/test_hoe_test.rb in hoe-3.6.2
- old
+ new
@@ -1,11 +1,11 @@
require "minitest/autorun"
require "hoe"
Hoe.load_plugins # make sure Hoe::Test is loaded
-class TestHoeTest < MiniTest::Unit::TestCase
+class TestHoeTest < Minitest::Test
def setup
@tester = Module.new do
include Hoe::Test
extend self
@@ -24,9 +24,14 @@
expected = ['-w -Ilib:bin:test:. -e \'require "rubygems"; %s',
'require "test/test_hoe_test.rb"',
"' -- ",
].join
+ # default
+ autorun = %(require "minitest/autorun"; )
+ assert_equal expected % autorun, @tester.make_test_cmd
+
+ @tester.testlib = :testunit
testunit = %(require "test/unit"; )
assert_equal expected % testunit, @tester.make_test_cmd
@tester.testlib = :minitest
autorun = %(require "minitest/autorun"; )