mirror of
https://github.com/kemko/liquid.git
synced 2026-01-06 18:25:41 +03:00
Merge pull request #551 from Shopify/expose-variable-name
Merge pull request 551
This commit is contained in:
committed by
Florian Weingarten
parent
000d0c911b
commit
47dbcd93a5
@@ -136,4 +136,10 @@ class VariableUnitTest < Minitest::Test
|
||||
var = Variable.new(%! name_of_variable | upcase !)
|
||||
assert_equal " name_of_variable | upcase ", var.raw
|
||||
end
|
||||
|
||||
def test_variable_lookup_interface
|
||||
lookup = VariableLookup.new('a.b.c')
|
||||
assert_equal 'a', lookup.name
|
||||
assert_equal ['b', 'c'], lookup.lookups
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user