Permalink
Browse files

Allows to add global config formatter

  • Loading branch information...
1 parent 7c8fff8 commit 1be86ce133c05315cbe150b7e29b7932e55ea77f @elcuervo committed Oct 16, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/gerbil.js
View
@@ -3,7 +3,7 @@ var Gerbil = function Gerbil(description, tests) {
this.pending = 0;
this.failures = 0;
this.count = 0;
- this.config = new Gerbil.Config(Gerbil.globalConfig );
+ this.config = new Gerbil.Config(Gerbil.globalConfig);
this.timeout = 0;
this.queue = new Gerbil.Queue;
this.results = new Gerbil.Queue;
@@ -364,7 +364,7 @@ Gerbil.formatter = {
};
Gerbil.Config = function(globalConfig) {
- this.formatter = Gerbil.formatter;
+ this.formatter = globalConfig && globalConfig.formatter || Gerbil.formatter;
this.prototype = globalConfig;
};

0 comments on commit 1be86ce

Please sign in to comment.