Fix syntax in doc comment; test same syntax.

This commit is contained in:
Mark H. Wilkinson
2008-07-09 18:34:41 +01:00
parent eb609ee4aa
commit 819b70204f
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -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)
+1
View File
@@ -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