mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-29 07:05:12 -07:00
add test for allowing whitespace between tokens
This commit is contained in:
@@ -287,4 +287,11 @@ HERE
|
|||||||
Liquid::Template.parse('{% for a/b in x %}{% endfor %}')
|
Liquid::Template.parse('{% for a/b in x %}{% endfor %}')
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_spacing_with_variable_naming_in_for_loop
|
||||||
|
expected = '12345'
|
||||||
|
template = '{% for item in items %}{{item}}{% endfor %}'
|
||||||
|
assigns = {'items' => [1,2,3,4,5]}
|
||||||
|
assert_template_result(expected, template, assigns)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user