Remove unneeded read method

This commit is contained in:
Julia Boutin
2025-10-27 12:41:59 -06:00
parent 47288ccca0
commit d109bc9242
3 changed files with 11 additions and 9 deletions
+10
View File
@@ -953,6 +953,16 @@ class SnippetTest < Minitest::Test
assert_match("Expected a string or identifier, found nothing", exception.message)
end
def test_render_with_invalid_identifier
template = "{% render 123 %}"
exception = assert_raises(SyntaxError) do
Liquid::Template.parse(template, error_mode: :rigid)
end
assert_match("Expected a string or identifier, found 123", exception.message)
end
end
class ResourceLimits < SnippetTest