Test space between dot

This commit is contained in:
Peter Zhu
2020-11-05 15:39:44 -05:00
parent 8f7f8761d1
commit a89371b0b9

View File

@@ -42,8 +42,8 @@ class VariableTest < Minitest::Test
end
def test_hash_scoping
template = Template.parse(%({{ test.test }}))
assert_equal('worked', template.render!('test' => { 'test' => 'worked' }))
assert_template_result('worked', "{{ test.test }}", 'test' => { 'test' => 'worked' })
assert_template_result('worked', "{{ test . test }}", 'test' => { 'test' => 'worked' })
end
def test_false_renders_as_false