Skip to content

Commit

Permalink
use options in run() or default to Suite
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudhead committed Jun 5, 2010
1 parent ee77415 commit 247015b
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/vows/suite.js
Original file line number Diff line number Diff line change
Expand Up @@ -187,13 +187,15 @@ this.Suite.prototype = new(function () {
};

this.run = function (options, callback) {
var that = this;
var start = new(Date);
var that = this, start;

this.matcher = options.matcher || this.matcher;
this.reporter = options.reporter || this.reporter;

this.matcher = options.matcher || vows.options.matcher;
this.reporter = options.reporter || vows.options.reporter;
this.reset();

start = new(Date);

this.report(['subject', this.subject]);

(function run(batches) {
Expand Down

0 comments on commit 247015b

Please sign in to comment.