From b9882a50f16edd4da1eb18a06eb1b3cb35d70d21 Mon Sep 17 00:00:00 2001
From: cloudhead <self@cloudhead.net>
Date: Fri, 4 Jun 2010 23:34:59 -0400
Subject: [PATCH] add print() function to reporters

---
 lib/vows/reporters/dot-matrix.js | 5 ++++-
 lib/vows/reporters/json.js       | 3 +++
 lib/vows/reporters/spec.js       | 3 +++
 3 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/lib/vows/reporters/dot-matrix.js b/lib/vows/reporters/dot-matrix.js
index 6e0545b..850d84c 100644
--- a/lib/vows/reporters/dot-matrix.js
+++ b/lib/vows/reporters/dot-matrix.js
@@ -58,5 +58,8 @@ this.report = function (data, s) {
             puts('\n\n * ' + stylize(event.error, 'red'));
             break;
     }
-    return buffer.join('');
+};
+
+this.print = function (str) {
+    sys.print(str);
 };
diff --git a/lib/vows/reporters/json.js b/lib/vows/reporters/json.js
index 1535990..449a68a 100644
--- a/lib/vows/reporters/json.js
+++ b/lib/vows/reporters/json.js
@@ -2,6 +2,9 @@ var sys = require('sys');
 //
 // Console JSON reporter
 //
+this.name = 'json';
 this.report = function (obj) {
     sys.puts(JSON.stringify(obj));
 };
+
+this.print = function (str) {};
diff --git a/lib/vows/reporters/spec.js b/lib/vows/reporters/spec.js
index 7872cc4..405b3e4 100644
--- a/lib/vows/reporters/spec.js
+++ b/lib/vows/reporters/spec.js
@@ -49,3 +49,6 @@ this.report = function (data, s) {
     }
 };
 
+this.print = function (str) {
+    sys.print(str);
+};