Use Minitest::Test

`Test::Unit` is deprecated, and we can switch to `Minitest::Test` with
almost no side effects.

This commit does all of the work required to make Minitest tests run
with Gollum's existing test helpers.
This commit is contained in:
benjamin wil
2021-12-31 11:29:56 -08:00
parent 4b2dc8e5c0
commit 0364d6e1be
5 changed files with 98 additions and 76 deletions
+6 -2
View File
@@ -37,7 +37,11 @@ class TestTemplateCascade < Minitest::Unit::TestCase
get '/Home'
assert_equal '/Home', last_request.fullpath
assert last_response.ok?
assert_no_match /PAGE_OVERRIDE/, last_response.body
assert_no_match /NAVBAR_OVERRIDE/, last_response.body
refute_match /PAGE_OVERRIDE/, last_response.body
refute_match /NAVBAR_OVERRIDE/, last_response.body
end
def teardown
FileUtils.rm_rf(@path)
end
end