tasks/test.rake in nanoc3-3.2.0a4 vs tasks/test.rake in nanoc3-3.2.0b1

- old
+ new

@@ -9,10 +9,13 @@ task :all do ENV['QUIET'] ||= 'true' $LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + '/..')) + # require our test helper so we don't have to in each individual test + require 'test/helper' + MiniTest::Unit.autorun test_files = Dir['test/**/*_spec.rb'] + Dir['test/**/test_*.rb'] test_files.each { |f| require f } end @@ -22,9 +25,12 @@ desc "Run all #{dir} tests" task dir.to_sym do |task| ENV['QUIET'] ||= 'true' $LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__) + '/..')) + + # require our test helper so we don't have to in each individual test + require 'test/helper' MiniTest::Unit.autorun test_files = Dir["test/#{dir}/**/*_spec.rb"] + Dir["test/#{dir}/**/test_*.rb"] test_files.each { |f| require f }