diff options
Diffstat (limited to 'spec/builtins.js')
-rw-r--r-- | spec/builtins.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/builtins.js b/spec/builtins.js index 766541a..6d9fa0b 100644 --- a/spec/builtins.js +++ b/spec/builtins.js @@ -181,6 +181,11 @@ describe('builtin helpers', function() { equal(result, 'a!b!c!', 'should output data'); }); + it("each on implicit context", function() { + var string = "{{#each}}{{text}}! {{/each}}cruel world!"; + var hash = [{text: "goodbye"}, {text: "Goodbye"}, {text: "GOODBYE"}]; + shouldCompileTo(string, [hash], "goodbye! Goodbye! GOODBYE! cruel world!"); + }); }); it("#log", function() { |