Fix broken standardfilter test

This commit is contained in:
Florian Weingarten
2014-07-23 17:15:39 -04:00
committed by Arthur Neves
parent 02d42a1475
commit 994f309465
2 changed files with 5 additions and 2 deletions
+4 -1
View File
@@ -7,6 +7,8 @@ class Filters
end
class TestThing
attr_reader :foo
def initialize
@foo = 0
end
@@ -149,7 +151,8 @@ class StandardFiltersTest < Test::Unit::TestCase
def test_sort_calls_to_liquid
t = TestThing.new
assert_template_result "woot: 1", '{{ foo | sort: "whatever" }}', "foo" => [t]
Liquid::Template.parse('{{ foo | sort: "whatever" }}').render("foo" => [t])
assert t.foo > 0
end
def test_map_over_proc