Skip to content

Commit

Permalink
Add spec for leading dot
Browse files Browse the repository at this point in the history
  • Loading branch information
Tomek Wiszniewski committed Aug 31, 2015
1 parent 83b0721 commit 1e8c2bc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions specs/interpolation.yml
Expand Up @@ -171,6 +171,15 @@ tests:
template: '"{{#a}}{{b.c.d.e.name}}{{/a}}" == "Phil"'
expected: '"Phil" == "Phil"'

- name: Dotted Names - Leading Dot
desc: A leading dot should force resolution inside the current scope.
data:
a: { }
b: { name: 'Name' }
name: 'Fail'
template: '{{#a}}{{.name}}{{/a}}{{#b}}{{.name}}{{/b}}'
expected: 'Name'

- name: Dotted Names - Context Precedence
desc: Dotted names should be resolved against former resolutions.
data:
Expand Down

0 comments on commit 1e8c2bc

Please sign in to comment.