summaryrefslogtreecommitdiffstats
path: root/spec/builtins.js
diff options
context:
space:
mode:
authorkpdecker <kpdecker@gmail.com>2013-10-09 03:21:21 -0700
committerkpdecker <kpdecker@gmail.com>2013-10-09 03:21:21 -0700
commit4d7124f6bfcc3b316c33558840c9e952cca1ce8c (patch)
tree17e6ad1010efec7938dfca56212426ac445e0294 /spec/builtins.js
parentb6c9f85d227aad8ed2db9c04f0eed5a7c7131879 (diff)
downloadhandlebars.js-4d7124f6bfcc3b316c33558840c9e952cca1ce8c.zip
handlebars.js-4d7124f6bfcc3b316c33558840c9e952cca1ce8c.tar.gz
handlebars.js-4d7124f6bfcc3b316c33558840c9e952cca1ce8c.tar.bz2
Remove global Handlebars references
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");