Permalink
Browse files

Merge pull request #48 from cjerdonek/dotted-name-precedence

Add a test that dotted name resolution should make forward-only progress
  • Loading branch information...
2 parents 9b1bc7a + e1ddf60 commit 72233f3ffda9e33915fd3022d0a9ebbcce265acd @pvande pvande committed May 25, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 specs/interpolation.yml
View
@@ -171,6 +171,14 @@ 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: { c: 'ERROR' }
+ template: '{{#a}}{{b.c}}{{/a}}'
+ expected: ''
+
# Whitespace Sensitivity
- name: Interpolation - Surrounding Whitespace

0 comments on commit 72233f3

Please sign in to comment.