Skip to content

Commit

Permalink
Added a test that elements of a list of lambdas should each have thei…
Browse files Browse the repository at this point in the history
…r results parsed.
  • Loading branch information
cjerdonek committed Apr 29, 2012
1 parent 266747a commit 493283c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions specs/~lambdas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,18 @@ tests:
template: "<{{#lambda}}-{{/lambda}}>"
expected: "<-Earth->"

- name: Section - Expansion of List Elements
desc: Lambdas used for sections in a list should each have their results parsed.
data:
planet: "Earth"
lambdas:
- !code
python: 'lambda text: "~{{%s}}~" % text'
- !code
python: 'lambda text: "#{{%s}}#" % text'
template: "<{{#lambdas}}planet{{/lambdas}}>"
expected: "<~Earth~#Earth#>"

- name: Section - Context Stack
desc: |
Lambdas used for sections should not be pushed onto the context
Expand Down

0 comments on commit 493283c

Please sign in to comment.