From cb124978590e7324d3c5b78e6d8f7930498e6882 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20Schro=CC=88der?= Date: Thu, 13 Jun 2013 18:21:49 -0400 Subject: [PATCH] add test for allowing whitespace between tokens --- test/liquid/tags/for_tag_test.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/liquid/tags/for_tag_test.rb b/test/liquid/tags/for_tag_test.rb index 6a0e55da..75b71a69 100644 --- a/test/liquid/tags/for_tag_test.rb +++ b/test/liquid/tags/for_tag_test.rb @@ -287,4 +287,11 @@ HERE Liquid::Template.parse('{% for a/b in x %}{% endfor %}') 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