Skip to content

Commit

Permalink
Fix old MiniTest references
Browse files Browse the repository at this point in the history
  • Loading branch information
k0kubun committed Aug 2, 2023
1 parent f6258e7 commit d338d45
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions test/haml/haml-spec/ugly_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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{<?xml version='1.0' encoding='utf-8' ?>}
Expand Down Expand Up @@ -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{<p></p>}
Expand Down Expand Up @@ -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{<ns:tag></ns:tag>}
Expand Down Expand Up @@ -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{<div class='123'></div>}
Expand Down Expand Up @@ -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{<p>hello</p>}
Expand Down Expand Up @@ -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}
Expand Down Expand Up @@ -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{<p a='b'></p>}
Expand Down Expand Up @@ -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{<p a='b'></p>}
Expand Down Expand Up @@ -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{}
Expand Down Expand Up @@ -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{<!-- comment -->}
Expand All @@ -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}
Expand All @@ -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
<&">}
Expand Down Expand Up @@ -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{<p>value</p>}
Expand Down Expand Up @@ -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{&lt;&quot;&amp;&gt;}
Expand Down Expand Up @@ -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{<input checked='checked' />}
Expand All @@ -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<pre>Bar\nBaz</pre>"}
_html = %q{Foo
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit d338d45

Please sign in to comment.