mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-15 08:50:45 -07:00
Cycle tags are never blank
This commit is contained in:
@@ -44,6 +44,10 @@ module Liquid
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def blank?
|
||||||
|
false
|
||||||
|
end
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def variables_from_string(markup)
|
def variables_from_string(markup)
|
||||||
|
|||||||
@@ -65,6 +65,10 @@ class BlankTest < Test::Unit::TestCase
|
|||||||
assert_template_result(" 0"*2*(N+1), wrap("{% assign foo = 0 %} {% increment foo %} {% decrement foo %}"))
|
assert_template_result(" 0"*2*(N+1), wrap("{% assign foo = 0 %} {% increment foo %} {% decrement foo %}"))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def test_cycle_is_not_blank
|
||||||
|
assert_template_result("12"*((N+1)/2)+"1", wrap("{% cycle '1', '2' %}"))
|
||||||
|
end
|
||||||
|
|
||||||
def test_raw_is_not_blank
|
def test_raw_is_not_blank
|
||||||
assert_template_result(" "*(N+1), wrap(" {% raw %} {% endraw %}"))
|
assert_template_result(" "*(N+1), wrap(" {% raw %} {% endraw %}"))
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user