test/liquid/assign_test.rb in liquid-2.3.0 vs test/liquid/assign_test.rb in liquid-2.4.0
- old
+ new
@@ -10,6 +10,12 @@
assert_template_result('.bar.',
'{% assign foo = values %}.{{ foo[1] }}.',
'values' => %w{foo bar baz})
end
+
+ def test_assign_with_filter
+ assert_template_result('.bar.',
+ '{% assign foo = values | split: "," %}.{{ foo[1] }}.',
+ 'values' => "foo,bar,baz")
+ end
end # AssignTest