summaryrefslogtreecommitdiff
path: root/specs/interpolation.yml
diff options
context:
space:
mode:
Diffstat (limited to 'specs/interpolation.yml')
-rw-r--r--specs/interpolation.yml6
1 files changed, 6 insertions, 0 deletions
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