make this actually work :/

This commit is contained in:
John Bintz 2011-04-18 09:46:57 -04:00
parent b7425b38a4
commit 96ab03e328
1 changed files with 2 additions and 2 deletions

View File

@ -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() {