summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--specs/interpolation.yml8
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