mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-15 08:50:45 -07:00
Add test for spaces in square brackets
This commit is contained in:
@@ -6,6 +6,9 @@ class VariableUnitTest < Minitest::Test
|
||||
def test_variable
|
||||
var = Variable.new('hello')
|
||||
assert_equal VariableLookup.new('hello'), var.name
|
||||
|
||||
var = Variable.new('hello[goodbye ]')
|
||||
assert_equal VariableLookup.new('hello[goodbye]'), var.name
|
||||
end
|
||||
|
||||
def test_filters
|
||||
|
||||
Reference in New Issue
Block a user