mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-12 23:40:45 -07:00
Fix syntax in doc comment; test same syntax.
This commit is contained in:
@@ -174,7 +174,7 @@ module Liquid
|
|||||||
#
|
#
|
||||||
# @context['hash'] = {"name" => 'tobi'}
|
# @context['hash'] = {"name" => 'tobi'}
|
||||||
# assert_equal 'tobi', @context['hash.name']
|
# assert_equal 'tobi', @context['hash.name']
|
||||||
# assert_equal 'tobi', @context['hash[name]']
|
# assert_equal 'tobi', @context['hash["name"]']
|
||||||
#
|
#
|
||||||
def variable(markup)
|
def variable(markup)
|
||||||
parts = markup.scan(VariableParser)
|
parts = markup.scan(VariableParser)
|
||||||
|
|||||||
@@ -192,6 +192,7 @@ class ContextTest < Test::Unit::TestCase
|
|||||||
def test_hierachical_data
|
def test_hierachical_data
|
||||||
@context['hash'] = {"name" => 'tobi'}
|
@context['hash'] = {"name" => 'tobi'}
|
||||||
assert_equal 'tobi', @context['hash.name']
|
assert_equal 'tobi', @context['hash.name']
|
||||||
|
assert_equal 'tobi', @context['hash["name"]']
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_keywords
|
def test_keywords
|
||||||
|
|||||||
Reference in New Issue
Block a user