mirror of
https://github.com/kemko/liquid.git
synced 2026-01-01 15:55:40 +03:00
Merge pull request #1344 from Shopify/pz-test-space-in-dot
Test space between dot for attributes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user