Initial concept

This commit is contained in:
Mike Angell
2019-09-20 15:35:12 +10:00
parent f4d134cd5c
commit 3ffae9a6e4
7 changed files with 190 additions and 2 deletions
+6
View File
@@ -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 = {})