Fix compatibility with the ruby contrib runner

This commit is contained in:
ragaskar
2009-08-26 15:55:08 -07:00
parent f9d61108ee
commit ba5b4ab166
22 changed files with 133 additions and 36 deletions

View File

@@ -16,6 +16,7 @@ jasmine.Suite = function(env, description, specDefinitions, parentSuite) {
self.env = env;
self.beforeQueue = [];
self.afterQueue = [];
self.specs = [];
};
@@ -53,6 +54,7 @@ jasmine.Suite.prototype.add = function(block) {
if (block instanceof jasmine.Suite) {
this.env.currentRunner.addSuite(block);
}
this.specs.push(block);
this.queue.add(block);
};