mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-26 13:45:13 -07:00
Use assert_template_result & assert_match_syntax_error in more places (#1611)
This commit is contained in:
@@ -530,14 +530,9 @@ class TrimModeTest < Minitest::Test
|
||||
end
|
||||
|
||||
def test_pre_trim_blank_preceding_text
|
||||
template = Liquid::Template.parse("\n{%- raw %}{% endraw %}")
|
||||
assert_equal("", template.render)
|
||||
|
||||
template = Liquid::Template.parse("\n{%- if true %}{% endif %}")
|
||||
assert_equal("", template.render)
|
||||
|
||||
template = Liquid::Template.parse("{{ 'B' }} \n{%- if true %}C{% endif %}")
|
||||
assert_equal("BC", template.render)
|
||||
assert_template_result("", "\n{%- raw %}{% endraw %}")
|
||||
assert_template_result("", "\n{%- if true %}{% endif %}")
|
||||
assert_template_result("BC", "{{ 'B' }} \n{%- if true %}C{% endif %}")
|
||||
end
|
||||
|
||||
def test_bug_compatible_pre_trim
|
||||
|
||||
Reference in New Issue
Block a user