Skip to content

Commit 6ef8b21

Browse files
Vasil ChimevVasil Chimev
Vasil Chimev
authored and
Vasil Chimev
committed
Update CocoaPods tests.
NativeScript/nativescript-cli#831
1 parent 23326f7 commit 6ef8b21

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

tests/plugins_osx_pods.py

+11-6
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,12 @@ def test_001_PluginAdd_Pod_GoogleMaps_Before_PlatformAdd_iOS(self):
3838
assert ("Installing pods..." in output)
3939
assert ("Successfully prepared plugin googlesdk for ios." in output)
4040

41-
output = runAUT("cat TNS_App/platforms/ios/TNSApp.xcworkspace/contents.xcworkspacedatas")
41+
output = runAUT("cat TNS_App/platforms/ios/Podfile")
42+
assert ("source 'https://github.com/CocoaPods/Specs.git'" in output)
43+
assert ("platform :ios, '8.1'" in output)
44+
assert ("pod 'GoogleMaps'" in output)
45+
46+
output = runAUT("cat TNS_App/platforms/ios/TNSApp.xcworkspace/contents.xcworkspacedata")
4247
assert ("location = \"group:TNSApp.xcodeproj\">" in output)
4348
assert ("location = \"group:Pods/Pods.xcodeproj\">" in output)
4449

@@ -60,16 +65,16 @@ def test_002_PluginAdd_Pod_GoogleMaps_After_PlatformAdd_iOS(self):
6065
assert ("dependencies" in output)
6166
assert ("googlesdk" in output)
6267

68+
output = Build(platform="ios", path="TNS_App")
69+
assert ("Installing pods..." in output)
70+
assert ("Successfully prepared plugin googlesdk for ios." in output)
71+
6372
output = runAUT("cat TNS_App/platforms/ios/Podfile")
6473
assert ("source 'https://github.com/CocoaPods/Specs.git'" in output)
6574
assert ("platform :ios, '8.1'" in output)
6675
assert ("pod 'GoogleMaps'" in output)
6776

68-
output = Build(platform="ios", path="TNS_App")
69-
assert ("Installing pods..." in output)
70-
assert ("Successfully prepared plugin googlesdk for ios." in output)
71-
72-
output = runAUT("cat TNS_App/platforms/ios/TNSApp.xcworkspace/contents.xcworkspacedatas")
77+
output = runAUT("cat TNS_App/platforms/ios/TNSApp.xcworkspace/contents.xcworkspacedata")
7378
assert ("location = \"group:TNSApp.xcodeproj\">" in output)
7479
assert ("location = \"group:Pods/Pods.xcodeproj\">" in output)
7580

0 commit comments

Comments
 (0)