mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-16 09:20:42 -07:00
Initial concept
This commit is contained in:
@@ -156,6 +156,12 @@ class VariableUnitTest < Minitest::Test
|
||||
assert_equal ['b', 'c'], lookup.lookups
|
||||
end
|
||||
|
||||
def test_filters_with_properly_quoted_curlies
|
||||
var = create_variable("hello | replace: \"}\", '}}'")
|
||||
assert_equal VariableLookup.new('hello'), var.name
|
||||
assert_equal [['replace', ['}', '}}']]], var.filters
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def create_variable(markup, options = {})
|
||||
|
||||
Reference in New Issue
Block a user