mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-18 02:10:41 -07:00
allow nil template source
This commit is contained in:
@@ -349,4 +349,9 @@ class TemplateTest < Minitest::Test
|
||||
|
||||
assert_equal('Liquid syntax error: Invalid template encoding', e.message)
|
||||
end
|
||||
|
||||
def test_allows_nil_as_source
|
||||
template = Template.parse(nil)
|
||||
assert_equal('', template.render)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user