mirror of
https://github.com/kemko/liquid.git
synced 2026-01-08 19:25:40 +03:00
Cycle tags are never blank
This commit is contained in:
@@ -43,7 +43,11 @@ module Liquid
|
||||
result
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
def blank?
|
||||
false
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
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 %}"))
|
||||
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
|
||||
assert_template_result(" "*(N+1), wrap(" {% raw %} {% endraw %}"))
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user