From b099dbe702da93cda0096fb7d3fbe02c08564a0b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Boutillier?= Date: Thu, 29 Aug 2024 00:46:19 +0200 Subject: [PATCH 1/2] s/MiniTest/Minitest/ --- test/erb_test.rb | 2 +- test/html2haml_test.rb | 2 +- test/test_helper.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/test/erb_test.rb b/test/erb_test.rb index 0308842..269f069 100644 --- a/test/erb_test.rb +++ b/test/erb_test.rb @@ -1,6 +1,6 @@ require 'test_helper' -class ErbTest < MiniTest::Unit::TestCase +class ErbTest < Minitest::Unit::TestCase def test_erb assert_equal '- foo = bar', render_erb('<% foo = bar %>') assert_equal '- foo = bar', render_erb('<% foo = bar -%>') diff --git a/test/html2haml_test.rb b/test/html2haml_test.rb index c96a040..5a0faeb 100644 --- a/test/html2haml_test.rb +++ b/test/html2haml_test.rb @@ -1,7 +1,7 @@ # encoding: UTF-8 require 'test_helper' -class Html2HamlTest < MiniTest::Unit::TestCase +class Html2HamlTest < Minitest::Unit::TestCase def test_empty_render_should_remain_empty assert_equal '', render('') end diff --git a/test/test_helper.rb b/test/test_helper.rb index 1a1f5a7..8a79074 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -10,7 +10,7 @@ require 'html2haml/html' require 'html2haml/html/erb' -class MiniTest::Unit::TestCase +class Minitest::Unit::TestCase protected def render(text, options = {}) Html2haml::HTML.new(text, options).render.rstrip From fbc3af7546c114687abf77b81973a31b50adfaaf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Boutillier?= Date: Thu, 29 Aug 2024 01:11:03 +0200 Subject: [PATCH 2/2] require minitest/unit --- test/test_helper.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/test/test_helper.rb b/test/test_helper.rb index 8a79074..7dffd07 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -6,6 +6,7 @@ require "bundler/setup" require "minitest/autorun" +require "minitest/unit" require "html2haml" require 'html2haml/html' require 'html2haml/html/erb'