Revert "Merge pull request #352 from gaiottino/master"

This reverts commit 553b0926ae, reversing
changes made to 628ab3dc6a.
This commit is contained in:
Florian Weingarten
2014-07-08 14:48:19 +00:00
parent 8909c9f27a
commit 0ac3ec7834
3 changed files with 0 additions and 25 deletions
-18
View File
@@ -457,22 +457,4 @@ class ContextUnitTest < Test::Unit::TestCase
assert_kind_of CategoryDrop, @context['category']
assert_equal @context, @context['category'].context
end
def test_strict_variables_not_found
with_error_mode(:strict) do
@context['does_not_exist']
assert(@context.errors.length == 1)
assert_equal(@context.errors[0], 'Variable {{does_not_exist}} not found')
end
end
def test_strict_nested_variables_not_found
with_error_mode(:strict) do
@context['hash'] = {'this' => 'exists'}
@context['hash.does_not_exist']
assert(@context.errors.length == 1)
assert_equal(@context.errors[0], 'Variable {{hash.does_not_exist}} not found')
end
end
end # ContextTest