summaryrefslogtreecommitdiffstats
path: root/spec/builtins.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/builtins.js')
-rw-r--r--spec/builtins.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/builtins.js b/spec/builtins.js
index 46d70ba..9598743 100644
--- a/spec/builtins.js
+++ b/spec/builtins.js
@@ -47,6 +47,10 @@ describe('builtin helpers', function() {
var string = '{{#with person}}Person is present{{else}}Person is not present{{/with}}';
shouldCompileTo(string, {}, 'Person is not present');
});
+ it('with provides block parameter', function() {
+ var string = '{{#with person as |foo|}}{{foo.first}} {{last}}{{/with}}';
+ shouldCompileTo(string, {person: {first: 'Alan', last: 'Johnson'}}, 'Alan Johnson');
+ });
});
describe('#each', function() {