summaryrefslogtreecommitdiffstats
path: root/spec/builtins.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/builtins.js')
-rw-r--r--spec/builtins.js7
1 files changed, 1 insertions, 6 deletions
diff --git a/spec/builtins.js b/spec/builtins.js
index 7c3e012..c678964 100644
--- a/spec/builtins.js
+++ b/spec/builtins.js
@@ -1,10 +1,5 @@
/*global CompilerContext, shouldCompileTo, compileWithPartials */
describe('builtin helpers', function() {
- var originalLog = Handlebars.log;
- afterEach(function() {
- Handlebars.log = originalLog;
- });
-
describe('#if', function() {
it("if", function() {
var string = "{{#if goodbye}}GOODBYE {{/if}}cruel {{world}}!";
@@ -130,7 +125,7 @@ describe('builtin helpers', function() {
var hash = { blah: "whee" };
var levelArg, logArg;
- Handlebars.log = function(level, arg){ levelArg = level, logArg = arg; };
+ handlebarsEnv.log = function(level, arg){ levelArg = level, logArg = arg; };
shouldCompileTo(string, hash, "", "log should not display");
equals(1, levelArg, "should call log with 1");