mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-15 08:50:45 -07:00
Fix case where a variable name is falsy
This commit is contained in:
@@ -31,6 +31,7 @@ class VariableTest < Minitest::Test
|
||||
|
||||
def test_false_renders_as_false
|
||||
assert_equal 'false', Template.parse("{{ foo }}").render!('foo' => false)
|
||||
assert_equal 'false', Template.parse("{{ false }}").render!
|
||||
end
|
||||
|
||||
def test_preset_assigns
|
||||
|
||||
Reference in New Issue
Block a user