You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by mw...@apache.org on 2013/03/08 02:00:11 UTC

git commit: [CB-2635] Prevent console output in BlackBerry Parser tests.

Updated Branches:
  refs/heads/master 3885b9b18 -> 21aadeb1a


[CB-2635] Prevent console output in BlackBerry Parser tests.


Project: http://git-wip-us.apache.org/repos/asf/cordova-cli/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-cli/commit/21aadeb1
Tree: http://git-wip-us.apache.org/repos/asf/cordova-cli/tree/21aadeb1
Diff: http://git-wip-us.apache.org/repos/asf/cordova-cli/diff/21aadeb1

Branch: refs/heads/master
Commit: 21aadeb1af7f6555e82bbb4b15ca59c43eb38ecc
Parents: 3885b9b
Author: Michael Brooks <mi...@michaelbrooks.ca>
Authored: Thu Mar 7 16:59:53 2013 -0800
Committer: Michael Brooks <mi...@michaelbrooks.ca>
Committed: Thu Mar 7 16:59:53 2013 -0800

----------------------------------------------------------------------
 spec/metadata/blackberry_parser.spec.js |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/21aadeb1/spec/metadata/blackberry_parser.spec.js
----------------------------------------------------------------------
diff --git a/spec/metadata/blackberry_parser.spec.js b/spec/metadata/blackberry_parser.spec.js
index 3336b59..12d5294 100644
--- a/spec/metadata/blackberry_parser.spec.js
+++ b/spec/metadata/blackberry_parser.spec.js
@@ -34,6 +34,10 @@ var www_config = path.join(project_path, 'www', 'config.xml');
 var original_www_config = fs.readFileSync(www_config, 'utf-8');
 
 describe('blackberry project parser', function() {
+    beforeEach(function() {
+        spyOn(process.stdout, 'write'); // silence console output
+    });
+
     it('should throw an exception with a path that is not a native blackberry project', function() {
         expect(function() {
             var project = new blackberry_parser(process.cwd());