diff options
author | Pieter van de Bruggen <pvande@gmail.com> | 2012-05-24 18:28:04 -0700 |
---|---|---|
committer | Pieter van de Bruggen <pvande@gmail.com> | 2012-05-24 18:28:04 -0700 |
commit | 72233f3ffda9e33915fd3022d0a9ebbcce265acd (patch) | |
tree | 400975dca123f4099d68e6f42d65b2b7bdb6cde9 | |
parent | 9b1bc7ad19247e9671304af02078f2ce30132665 (diff) | |
parent | e1ddf6048c99f5c81352eb04a84edc0669c4320b (diff) | |
download | mustache-spec-72233f3ffda9e33915fd3022d0a9ebbcce265acd.tar.gz |
Merge pull request #48 from cjerdonek/dotted-name-precedence
Add a test that dotted name resolution should make forward-only progress
-rw-r--r-- | specs/interpolation.yml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/specs/interpolation.yml b/specs/interpolation.yml index 2237b55..1b6fff1 100644 --- a/specs/interpolation.yml +++ b/specs/interpolation.yml @@ -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 |