summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Jerdonek <chris.jerdonek@gmail.com>2012-05-24 17:12:31 -0700
committerChris Jerdonek <chris.jerdonek@gmail.com>2012-05-24 17:12:31 -0700
commite1ddf6048c99f5c81352eb04a84edc0669c4320b (patch)
tree400975dca123f4099d68e6f42d65b2b7bdb6cde9
parenta5d084b2381a507995331ffb0da141f4f593ca66 (diff)
downloadmustache-spec-e1ddf6048c99f5c81352eb04a84edc0669c4320b.tar.gz
Simplify issue #48 test case to be minimal.
-rw-r--r--specs/interpolation.yml8
1 files changed, 5 insertions, 3 deletions
diff --git a/specs/interpolation.yml b/specs/interpolation.yml
index d5f2c0d..1b6fff1 100644
--- a/specs/interpolation.yml
+++ b/specs/interpolation.yml
@@ -173,9 +173,11 @@ tests:
- 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" : ""'
+ data:
+ a: { b: { } }
+ b: { c: 'ERROR' }
+ template: '{{#a}}{{b.c}}{{/a}}'
+ expected: ''
# Whitespace Sensitivity