From a5d084b2381a507995331ffb0da141f4f593ca66 Mon Sep 17 00:00:00 2001 From: Chris Jerdonek Date: Sun, 29 Apr 2012 18:03:05 -0700 Subject: Added "Dotted Names - Context Precedence" test. This test case tests that successive portions of dotted names should be resolved against former resolutions (i.e. forward-only progress). --- specs/interpolation.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/specs/interpolation.yml b/specs/interpolation.yml index 2237b55..d5f2c0d 100644 --- a/specs/interpolation.yml +++ b/specs/interpolation.yml @@ -171,6 +171,12 @@ tests: template: '"{{#a}}{{b.c.d.e.name}}{{/a}}" == "Phil"' expected: '"Phil" == "Phil"' + - name: Dotted Names - Context Precedence + desc: Dotted names should be resolved against former resolutions. + data: { a: { b: 'b found: ERROR' }, c: { a: 'b not found'} } + template: '{{#c}}"{{a}}" : "{{a.b}}"{{/c}}' + expected: '"b not found" : ""' + # Whitespace Sensitivity - name: Interpolation - Surrounding Whitespace -- cgit v1.2.1