mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-12 23:40:45 -07:00
Fix regression with calling a drop with a empty string
This commit is contained in:
@@ -155,4 +155,8 @@ class DropsTest < Test::Unit::TestCase
|
||||
def test_enumerable_drop_size
|
||||
assert_equal '3', Liquid::Template.parse( '{{collection.size}}').render('collection' => EnumerableDrop.new)
|
||||
end
|
||||
|
||||
def test_empty_string_value_access
|
||||
assert_equal '', Liquid::Template.parse('{{ product[value] }}').render('product' => ProductDrop.new, 'value' => '')
|
||||
end
|
||||
end # DropsTest
|
||||
|
||||
Reference in New Issue
Block a user