mirror of
https://github.com/Shopify/liquid.git
synced 2026-10-03 00:55:11 -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
|
def test_variable
|
||||||
var = Variable.new('hello')
|
var = Variable.new('hello')
|
||||||
assert_equal VariableLookup.new('hello'), var.name
|
assert_equal VariableLookup.new('hello'), var.name
|
||||||
|
|
||||||
|
var = Variable.new('hello[goodbye ]')
|
||||||
|
assert_equal VariableLookup.new('hello[goodbye]'), var.name
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_filters
|
def test_filters
|
||||||
|
|||||||
Reference in New Issue
Block a user