Support rendering symbols as strings

This commit is contained in:
Justin Li
2017-08-17 23:10:57 -04:00
parent 59162f7a0e
commit bf3e759da3
2 changed files with 10 additions and 0 deletions
+4
View File
@@ -89,4 +89,8 @@ class VariableTest < Minitest::Test
def test_multiline_variable
assert_equal 'worked', Template.parse("{{\ntest\n}}").render!('test' => 'worked')
end
def test_render_symbol
assert_template_result 'bar', '{{ foo }}', 'foo' => :bar
end
end