test/helper.rb in nanoc-3.7.5 vs test/helper.rb in nanoc-3.8.0
- old
+ new
@@ -2,11 +2,11 @@
# Set up gem loading (necessary for cri dependency)
require File.dirname(__FILE__) + '/gem_loader.rb'
# Load unit testing stuff
-require 'minitest/unit'
+require 'minitest/test'
require 'minitest/spec'
require 'minitest/mock'
require 'mocha/setup'
require 'vcr'
@@ -254,15 +254,15 @@
def skip_unless_symlinks_supported
skip 'Symlinks are not supported by Ruby on Windows' unless symlinks_supported?
end
end
-class Nanoc::TestCase < MiniTest::Unit::TestCase
+class Nanoc::TestCase < Minitest::Test
include Nanoc::TestHelpers
end
# Unexpected system exit is unexpected
-::MiniTest::Unit::TestCase::PASSTHROUGH_EXCEPTIONS.delete(SystemExit)
+::Minitest::Test::PASSTHROUGH_EXCEPTIONS.delete(SystemExit)
# A more precise inspect method for Time improves assert failure messages.
#
class Time
def inspect