mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-12 23:40:45 -07:00
Remove unneeded read method
This commit is contained in:
committed by
Guilherme Carreiro
parent
ae05ba071c
commit
98fbd985d8
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user