cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject git commit: Fix tests (sorry)
Date Fri, 24 Jan 2014 21:22:06 GMT
Updated Branches:
  refs/heads/master 75ceb5b80 -> af80a4312


Fix tests (sorry)


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

Branch: refs/heads/master
Commit: af80a4312cd2af672f267646ca918124a2d38fe0
Parents: 75ceb5b
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Fri Jan 24 16:21:56 2014 -0500
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Fri Jan 24 16:21:56 2014 -0500

----------------------------------------------------------------------
 spec/run.spec.js | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/af80a431/spec/run.spec.js
----------------------------------------------------------------------
diff --git a/spec/run.spec.js b/spec/run.spec.js
index 41122fa..26b3e83 100644
--- a/spec/run.spec.js
+++ b/spec/run.spec.js
@@ -97,10 +97,10 @@ describe('run command', function() {
             cordova.raw.run(['android','ios']).then(function() {
                 expect(prepare_spy).toHaveBeenCalledWith(['android', 'ios']);
 
-                spawn_call = spawn_wrap(path.join(project_dir, 'platforms', 'android', 'cordova',
'run'), ['--device']);
+                spawn_call = spawn_wrap(path.join(project_dir, 'platforms', 'android', 'cordova',
'run'), []);
                 expect(child_process.spawn).toHaveBeenCalledWith(spawn_call.cmd, spawn_call.args);
 
-                spawn_call = spawn_wrap(path.join(project_dir, 'platforms', 'ios', 'cordova',
'run'), ['--device']);
+                spawn_call = spawn_wrap(path.join(project_dir, 'platforms', 'ios', 'cordova',
'run'), []);
                 expect(child_process.spawn).toHaveBeenCalledWith(spawn_call.cmd, spawn_call.args);
 
             }, function(err) {
@@ -111,7 +111,7 @@ describe('run command', function() {
             cordova.raw.run({platforms: ['blackberry10'], options:['--password', '1q1q']}).then(function()
{
                 expect(prepare_spy).toHaveBeenCalledWith(['blackberry10']);
 
-                spawn_call = spawn_wrap(path.join(project_dir, 'platforms', 'blackberry10',
'cordova', 'run'), ['--device', '--password', '1q1q']);
+                spawn_call = spawn_wrap(path.join(project_dir, 'platforms', 'blackberry10',
'cordova', 'run'), ['--password', '1q1q']);
                 expect(child_process.spawn).toHaveBeenCalledWith(spawn_call.cmd, spawn_call.args);
             }, function(err) {
                 expect(err).toBeUndefined();


Mime
View raw message