This commit is contained in:
Tobias Lütke
2009-03-10 17:23:17 -04:00
parent 70ca647e1e
commit 26faf512a1
3 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ require 'rubygems'
require 'rake'
require 'hoe'
PKG_VERSION = "1.9.0"
PKG_VERSION = "2.0.0"
PKG_NAME = "liquid"
PKG_DESC = "A secure non evaling end user template engine with aesthetic markup."
+3 -1
View File
@@ -346,7 +346,6 @@ HERE
end
def test_cycle
assert_template_result('one','{%cycle "one", "two"%}')
@@ -356,6 +355,9 @@ HERE
assert_template_result('text-align: left text-align: right','{%cycle "text-align: left", "text-align: right" %} {%cycle "text-align: left", "text-align: right"%}')
assert_template_result(' ','{% cycle "", "", "</tr><tr>" %}')
assert_template_result(' </tr><tr> ','{% cycle "", "", "</tr><tr>" %} {% cycle "", "", "</tr><tr>" %} {% cycle "", "", "</tr><tr>" %} {% cycle "", "", "</tr><tr>" %}')
end
def test_multiple_cycles