Add hermetic template recording and replay

This commit is contained in:
Tobi Lutke
2026-08-07 12:30:55 -04:00
parent 807d45a6b3
commit 3befa567b1
14 changed files with 1051 additions and 21 deletions
+2 -1
View File
@@ -269,7 +269,8 @@ class ErrorHandlingTest < Minitest::Test
assert_equal("Liquid error: comparison of Integer with String failed0", output)
output = Liquid::Template.parse("{% assign x = 0 %}{% if 1 < '2' %}{% assign x = 3 %}{% endif %}{{ x }}").render
assert_equal("0", output)
expected = ENV["LIQUID_PARSER_MODE"] == "strict2" ? "Liquid error: comparison of Integer with String failed0" : "0"
assert_equal(expected, output)
end
def test_syntax_error_is_raised_with_template_name