incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject [5/78] [abbrv] git commit: and tweak expectation to go along with that last change
Date Fri, 27 Jul 2012 00:29:15 GMT
and tweak expectation to go along with that last change


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/commit/52f12bbd
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/tree/52f12bbd
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/diff/52f12bbd

Branch: refs/heads/cordova-client
Commit: 52f12bbdf89b9bfd53ba705875fa48ccf9759bc5
Parents: f9bbe19
Author: Fil Maj <maj.fil@gmail.com>
Authored: Thu Jul 26 00:12:57 2012 -0700
Committer: Fil Maj <maj.fil@gmail.com>
Committed: Thu Jul 26 00:12:57 2012 -0700

----------------------------------------------------------------------
 spec/create.spec.js |   12 ++++--------
 1 files changed, 4 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-labs/blob/52f12bbd/spec/create.spec.js
----------------------------------------------------------------------
diff --git a/spec/create.spec.js b/spec/create.spec.js
index bdd2ceb..173c63a 100644
--- a/spec/create.spec.js
+++ b/spec/create.spec.js
@@ -26,14 +26,10 @@ describe('create command', function () {
         expect(fs.lstatSync(path.join(tempDir, '.cordova')).isDirectory()).toBe(true);
     });
     it('should warn if the directory is already a cordova project', function() {
-        spyOn(console, 'error');
-
-        var cb = jasmine.createSpy();
-
         mkdirp(path.join(tempDir, '.cordova'));
-
-        cordova.create(tempDir);
-
-        expect(console.error).toHaveBeenCalled();
+        
+        expect(function() {
+            cordova.create(tempDir);
+        }).toThrow();
     });
 });


Mime
View raw message