summaryrefslogtreecommitdiff
path: root/specs/lambdas.yml
diff options
context:
space:
mode:
Diffstat (limited to 'specs/lambdas.yml')
-rw-r--r--specs/lambdas.yml12
1 files changed, 12 insertions, 0 deletions
diff --git a/specs/lambdas.yml b/specs/lambdas.yml
index d61f456..692b41b 100644
--- a/specs/lambdas.yml
+++ b/specs/lambdas.yml
@@ -27,6 +27,18 @@ tests:
template: '{{lambda}} == {{{lambda}}} == {{lambda}}'
expected: '1 == 1 == 1'
+ - name: Interpolation - Caches
+ desc: Lambda caches should not disrupt normal context operations.
+ data:
+ key: Top
+ context:
+ key: Under
+ lambda: !code
+ ruby: 'proc { "Big" }'
+ perl: 'sub { "Big" }'
+ template: "{{#context}}{{key}} the {{lambda}}{{/context}} {{key}}"
+ expected: "Under the Big Top"
+
- name: Escaping
desc: Lambda results should be appropriately escaped.
data: