From 96ab03e32864401a42b2c18fa60110455c2900cd Mon Sep 17 00:00:00 2001 From: John Bintz Date: Mon, 18 Apr 2011 09:46:57 -0400 Subject: [PATCH] make this actually work :/ --- templates/spec_helper.js.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/spec_helper.js.erb b/templates/spec_helper.js.erb index 4d642be..9566743 100644 --- a/templates/spec_helper.js.erb +++ b/templates/spec_helper.js.erb @@ -1,13 +1,13 @@ /* Backbone helpers. Requires json2 and sinon-server or the full-blown sinon. */ var withServer = function() { - jasmine.getEnv().currentSpec.withServer(); + jasmine.getEnv().withServer(); }; if (isCommonJS) exports.withServer = withServer; jasmine.Env.prototype.withServer = function() { this.currentSuite.beforeEach(function() { - this.server = sinon.fakeServer().create(); + this.server = sinon.fakeServer.create(); }); this.currentSuite.afterEach(function() {