From 4fea24bb8e273552ab2a0d73abc236c0cfe0fbe1 Mon Sep 17 00:00:00 2001 From: kpdecker Date: Wed, 3 Sep 2014 01:28:16 -0500 Subject: [PATCH] Fix tests under handlebars+zepto environment This failure occurs due to the new behavior of the handlebars full library that does not overwrite the global if already defined, causing the compiler to be undefined in the test environment. --- build.json | 2 ++ test/lib/handlebars-reset.js | 1 + 2 files changed, 3 insertions(+) create mode 100644 test/lib/handlebars-reset.js diff --git a/build.json b/build.json index 2f68f25b..8bdc7d1f 100644 --- a/build.json +++ b/build.json @@ -11,6 +11,7 @@ {"name": "thorax-dep-zepto", "ignoreWarnings": true} ], "scripts": [ + {"src": "test/lib/handlebars-reset.js", "global": true}, {"src": "components/handlebars/handlebars.js", "ignoreWarnings": true, "global": true} ] }, @@ -31,6 +32,7 @@ {"name": "thorax-dep-zepto", "ignoreWarnings": true, "overrides": {"backbone.js": "test/lib/backbone-1-0.js"}} ], "scripts": [ + {"src": "test/lib/handlebars-reset.js", "global": true}, {"src": "components/handlebars/handlebars.js", "ignoreWarnings": true, "global": true} ] }, diff --git a/test/lib/handlebars-reset.js b/test/lib/handlebars-reset.js new file mode 100644 index 00000000..9340c4b7 --- /dev/null +++ b/test/lib/handlebars-reset.js @@ -0,0 +1 @@ +this.Handlebars = undefined;