You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by br...@apache.org on 2013/10/17 16:26:37 UTC

[3/4] git commit: Update spec to match new ios parse method name

Update spec to match new ios parse method name


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

Branch: refs/heads/master
Commit: af458da54192acd5c83a81a69cdeffe74d67c19e
Parents: a32b7cf
Author: SomaticIT <co...@somatic.fr>
Authored: Thu Oct 17 08:06:26 2013 +0200
Committer: SomaticIT <co...@somatic.fr>
Committed: Thu Oct 17 08:06:26 2013 +0200

----------------------------------------------------------------------
 spec/platforms/ios.spec.js       | 8 ++++----
 spec/util/config-changes.spec.js | 2 +-
 2 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/af458da5/spec/platforms/ios.spec.js
----------------------------------------------------------------------
diff --git a/spec/platforms/ios.spec.js b/spec/platforms/ios.spec.js
index a19af13..cb7460d 100644
--- a/spec/platforms/ios.spec.js
+++ b/spec/platforms/ios.spec.js
@@ -64,7 +64,7 @@ var plist_only_els = platformTag.findall('./plugins-plist');
 
 shell.mkdir('-p', temp);
 shell.cp('-rf', ios_config_xml_project, temp);
-var proj_files = ios.parseIOSProjectFiles(temp);
+var proj_files = ios.parseProjectFile(temp);
 shell.rm('-rf', temp);
 
 function copyArray(arr) {
@@ -92,10 +92,10 @@ describe('ios project handler', function() {
         });
     });
 
-    describe('parseIOSProjectFiles method', function() {
+    describe('parseProjectFile method', function () {
         it('should throw if project is not an xcode project', function() {
             expect(function() {
-                ios.parseIOSProjectFiles(temp);
+                ios.parseProjectFile(temp);
             }).toThrow('does not appear to be an xcode project (no xcode project file)');
         });
         it('should throw if project does not contain an appropriate PhoneGap/Cordova.plist file or config.xml file', function() {
@@ -103,7 +103,7 @@ describe('ios project handler', function() {
             shell.rm(path.join(temp, 'SampleApp', 'config.xml'));
 
             expect(function() {
-                ios.parseIOSProjectFiles(temp);
+                ios.parseProjectFile(temp);
             }).toThrow('could not find PhoneGap/Cordova plist file, or config.xml file.');
         });
     });

http://git-wip-us.apache.org/repos/asf/cordova-plugman/blob/af458da5/spec/util/config-changes.spec.js
----------------------------------------------------------------------
diff --git a/spec/util/config-changes.spec.js b/spec/util/config-changes.spec.js
index 1a088c0..5e46b69 100644
--- a/spec/util/config-changes.spec.js
+++ b/spec/util/config-changes.spec.js
@@ -298,7 +298,7 @@ describe('config-changes module', function() {
                     shell.cp('-rf', cbplugin, plugins_dir);
                     xcode_add = jasmine.createSpy();
                     xcode_rm = jasmine.createSpy();
-                    spyOn(ios_parser, 'parseIOSProjectFiles').andReturn({
+                    spyOn(ios_parser, 'parseProjectFile').andReturn({
                         xcode:{
                             addFramework:xcode_add,
                             removeFramework:xcode_rm,