summaryrefslogtreecommitdiffstats
path: root/spec/builtins.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/builtins.js')
-rw-r--r--spec/builtins.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/spec/builtins.js b/spec/builtins.js
index 8f20da1..75af236 100644
--- a/spec/builtins.js
+++ b/spec/builtins.js
@@ -276,7 +276,7 @@ describe('builtin helpers', function() {
equals(3, levelArg);
equals("whee", logArg);
});
- it('should not output to info', function() {
+ it('should output to info', function() {
var string = "{{log blah}}";
var hash = { blah: "whee" };
@@ -284,6 +284,10 @@ describe('builtin helpers', function() {
equals("whee", log);
called = true;
};
+ console.log = function(log) {
+ equals("whee", log);
+ called = true;
+ };
shouldCompileTo(string, hash, "");
equals(true, called);