Skip to content

Commit

Permalink
Set default for options in run().
Browse files Browse the repository at this point in the history
Fixes error when running tests directly.
  • Loading branch information
cloudhead committed Jun 7, 2010
1 parent e27bdfc commit a0dacb7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/vows/suite.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ this.Suite.prototype = new(function () {
this.run = function (options, callback) {
var that = this, start;

options = options || {};

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

Expand Down

0 comments on commit a0dacb7

Please sign in to comment.