Call to_liquid in Context invoke

This commit is contained in:
Florian Weingarten
2014-08-12 02:12:38 +00:00
parent d3b113d2e1
commit 1678c07548
4 changed files with 16 additions and 1 deletions

View File

@@ -9,6 +9,10 @@ class VariableTest < Minitest::Test
assert_equal 'worked wonderfully', template.render!('test' => 'worked wonderfully')
end
def test_variable_render_calls_to_liquid
assert_template_result 'foobar', '{{ foo }}', 'foo' => ThingWithToLiquid.new
end
def test_simple_with_whitespaces
template = Template.parse(%| {{ test }} |)
assert_equal ' worked ', template.render!('test' => 'worked')