cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bhigg...@apache.org
Subject git commit: [CB-3965] [BlackBerry10] remove tests for bb environment config
Date Wed, 03 Jul 2013 12:44:09 GMT
Updated Branches:
  refs/heads/master2 cbbc7b6a7 -> 7ddd05ff2


[CB-3965] [BlackBerry10] remove tests for bb environment config


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

Branch: refs/heads/master2
Commit: 7ddd05ff2bfd3842fb54ab605d7093e1940eca87
Parents: cbbc7b6
Author: Bryan Higgins <bryan@bryanhiggins.net>
Authored: Wed Jul 3 08:43:32 2013 -0400
Committer: Bryan Higgins <bryan@bryanhiggins.net>
Committed: Wed Jul 3 08:43:32 2013 -0400

----------------------------------------------------------------------
 spec/metadata/blackberry_parser.spec.js | 47 ----------------------------
 1 file changed, 47 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-cli/blob/7ddd05ff/spec/metadata/blackberry_parser.spec.js
----------------------------------------------------------------------
diff --git a/spec/metadata/blackberry_parser.spec.js b/spec/metadata/blackberry_parser.spec.js
index 1203666..0581920 100644
--- a/spec/metadata/blackberry_parser.spec.js
+++ b/spec/metadata/blackberry_parser.spec.js
@@ -215,8 +215,6 @@ describe('blackberry project parser', function() {
                 staging = spyOn(p, 'update_staging');
                 svn = spyOn(util, 'deleteSvnFolders');
                 parse = spyOn(JSON, 'parse').andReturn({blackberry:{qnx:{}}});
-                get_env = spyOn(p, 'get_blackberry_environment');
-                set_env = spyOn(p, 'write_blackberry_environment');
             });
             it('should call update_from_config', function() {
                 p.update_project();
@@ -246,51 +244,6 @@ describe('blackberry project parser', function() {
                 p.update_project();
                 expect(svn).toHaveBeenCalled();
             });
-            it('should always write out the bb env', function() {
-                p.update_project();
-                expect(set_env).toHaveBeenCalled();
-            });
-            it('should retrieve then write out the bb env if it is empty', function() {
-                parse.andReturn({});
-                get_env.andCallFake(function(cb) { cb(); });
-                p.update_project();
-                expect(get_env).toHaveBeenCalled();
-                expect(set_env).toHaveBeenCalled();
-            });
-        });
-        describe('get_blackberry_environment method', function() {
-            var parse, promptspy;
-            var random_info = {
-                signing_password:'poop',
-                device_ip:'1.1.1.1',
-                device_name:'black shadow',
-                device_password:'giddyup',
-                device_pin:'dont have one',
-                sim_ip:'1.2.3.4',
-                sim_name:'data',
-                sim_password:'modem'
-            };
-            beforeEach(function() {
-                parse = spyOn(JSON, 'parse').andReturn({blackberry:{qnx:{
-                }}});
-                spyOn(prompt, 'start');
-                promptspy = spyOn(prompt, 'get').andCallFake(function(ps, cb) {
-                    cb(false, random_info);
-                });
-            });
-            it('should call into prompt to retrieve info about BB env', function(done) {
-                p.get_blackberry_environment(function(err) {
-                    expect(promptspy).toHaveBeenCalled();
-                    done();
-                });
-            });
-            it('should write out info gathered from prompt to dot file', function(done) {
-                var expected_json = {blackberry:{qnx:random_info}};
-                p.get_blackberry_environment(function(err, results) {
-                    expect(write).toHaveBeenCalledWith(path.join(proj, '.cordova', 'config.json'),
JSON.stringify(expected_json), 'utf-8');
-                    done();
-                });
-            });
         });
     });
 });


Mime
View raw message