Move tests for VariableLookup

This commit is contained in:
Peter Zhu
2020-11-12 16:14:33 -05:00
parent 933a1f1e7e
commit 2c27c2a6e1
3 changed files with 42 additions and 11 deletions
+6 -5
View File
@@ -110,11 +110,12 @@ module Liquid
def to_s
str = name.dup
lookups.each do |lookup|
if lookup.instance_of?(String)
str += '.' + lookup
else
str += '[' + lookup.to_s + ']'
end
str +=
if lookup.instance_of?(String)
'.' + lookup
else
'[' + lookup.to_s + ']'
end
end
str
end