From d338d4560239e72b05eee56e6d4e2e0802210f8b Mon Sep 17 00:00:00 2001 From: Takashi Kokubun Date: Wed, 2 Aug 2023 10:55:24 -0700 Subject: [PATCH] Fix old MiniTest references --- test/haml/haml-spec/ugly_test.rb | 36 ++++++++++++++++---------------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/test/haml/haml-spec/ugly_test.rb b/test/haml/haml-spec/ugly_test.rb index 3e52c01..c9615d5 100644 --- a/test/haml/haml-spec/ugly_test.rb +++ b/test/haml/haml-spec/ugly_test.rb @@ -6,7 +6,7 @@ # This is a spec converted by haml-spec. # See: https://github.com/haml/haml-spec -class UglyTest < MiniTest::Test +class UglyTest < Minitest::Test HAML_DEFAULT_OPTIONS = { escape_html: true, escape_attrs: true }.freeze HAMLIT_DEFAULT_OPTIONS = { escape_html: true }.freeze @@ -22,7 +22,7 @@ def self.hamlit_result(haml, options, locals) Hamlit::Template.new(HAMLIT_DEFAULT_OPTIONS.merge(options)) { haml }.render(Object.new, locals) end - class Headers < MiniTest::Test + class Headers < Minitest::Test def test_an_XHTML_XML_prolog haml = %q{!!! XML} _html = %q{} @@ -154,7 +154,7 @@ def test_an_HTML_4_strict_doctype end end - class Basichamltagsandcss < MiniTest::Test + class Basichamltagsandcss < Minitest::Test def test_a_simple_Haml_tag haml = %q{%p} _html = %q{

} @@ -312,7 +312,7 @@ def test_multiple_simple_Haml_tags end end - class Tagswithunusualhtmlcharacters < MiniTest::Test + class Tagswithunusualhtmlcharacters < Minitest::Test def test_a_tag_with_colons haml = %q{%ns:tag} _html = %q{} @@ -364,7 +364,7 @@ def test_a_tag_with_PascalCase end end - class Tagswithunusualcssidentifiers < MiniTest::Test + class Tagswithunusualcssidentifiers < Minitest::Test def test_an_all_numeric_class haml = %q{.123} _html = %q{
} @@ -396,7 +396,7 @@ def test_a_class_with_dashes end end - class Tagswithinlinecontent < MiniTest::Test + class Tagswithinlinecontent < Minitest::Test def test_Inline_content_simple_tag haml = %q{%p hello} _html = %q{

hello

} @@ -434,7 +434,7 @@ def test_Inline_content_multiple_simple_tags end end - class Tagswithnestedcontent < MiniTest::Test + class Tagswithnestedcontent < Minitest::Test def test_Nested_content_simple_tag haml = %q{%p hello} @@ -481,7 +481,7 @@ def test_Nested_content_multiple_simple_tags end end - class Tagswithhtmlstyleattributes < MiniTest::Test + class Tagswithhtmlstyleattributes < Minitest::Test def test_HTML_style_one_attribute haml = %q{%p(a='b')} _html = %q{

} @@ -605,7 +605,7 @@ def test_HTML_style_tag_with_an_atomic_attribute end end - class Tagswithrubystyleattributes < MiniTest::Test + class Tagswithrubystyleattributes < Minitest::Test def test_Ruby_style_one_attribute haml = %q{%p{:a => 'b'}} _html = %q{

} @@ -738,7 +738,7 @@ def test_Ruby_style_tag_multiple_CSS_classes_sorted_correctly_ end end - class Silentcomments < MiniTest::Test + class Silentcomments < Minitest::Test def test_an_inline_silent_comment haml = %q{-# hello} _html = %q{} @@ -785,7 +785,7 @@ def test_a_multiply_nested_silent_comment_with_inconsistent_indents end end - class Markupcomments < MiniTest::Test + class Markupcomments < Minitest::Test def test_an_inline_markup_comment haml = %q{/ comment} _html = %q{} @@ -812,7 +812,7 @@ def test_a_nested_markup_comment end end - class Conditionalcomments < MiniTest::Test + class Conditionalcomments < Minitest::Test def test_a_conditional_comment haml = %q{/[if IE] %p a} @@ -827,7 +827,7 @@ def test_a_conditional_comment end end - class Internalfilters < MiniTest::Test + class Internalfilters < Minitest::Test def test_content_in_an_escaped_filter haml = %q{:escaped <&">} @@ -934,7 +934,7 @@ def test_content_in_a_javascript_filter_HTML_ end end - class Rubystyleinterpolation < MiniTest::Test + class Rubystyleinterpolation < Minitest::Test def test_interpolation_inside_inline_content haml = %q{%p #{var}} _html = %q{

value

} @@ -977,7 +977,7 @@ def test_interpolation_inside_filtered_content end end - class Htmlescaping < MiniTest::Test + class Htmlescaping < Minitest::Test def test_code_following_ haml = %q{&= '<"&>'} _html = %q{<"&>} @@ -1009,7 +1009,7 @@ def test_code_following_neq_when_escape_haml_is_set_to_true end end - class Booleanattributes < MiniTest::Test + class Booleanattributes < Minitest::Test def test_boolean_attribute_with_XHTML haml = %q{%input(checked=true)} _html = %q{} @@ -1031,7 +1031,7 @@ def test_boolean_attribute_with_HTML end end - class Whitespacepreservation < MiniTest::Test + class Whitespacepreservation < Minitest::Test def test_following_the_operator haml = %q{~ "Foo\n
Bar\nBaz
"} _html = %q{Foo @@ -1070,7 +1070,7 @@ def test_inside_a_pre_tag end end - class Whitespaceremoval < MiniTest::Test + class Whitespaceremoval < Minitest::Test def test_a_tag_with_appended_and_inline_content haml = %q{%li hello %li> world