Commit aa294a77 authored by Cédric Luthi's avatar Cédric Luthi

Add test for STRIP_INSTALLED_PRODUCT = NO at project level

parent cf59f66c
...@@ -16,7 +16,7 @@ end ...@@ -16,7 +16,7 @@ end
def generate_podfile(pods = ['JSONKit']) def generate_podfile(pods = ['JSONKit'])
podfile = Pod::Podfile.new do podfile = Pod::Podfile.new do
platform :ios platform :ios
xcodeproj 'SampleProject/SampleProject' xcodeproj 'SampleProject/SampleProject', 'Debug' => :debug, 'Test' => :debug, 'Release' => :release, 'App Store' => :release
pods.each { |name| pod name } pods.each { |name| pod name }
end end
end end
...@@ -243,6 +243,15 @@ module Pod ...@@ -243,6 +243,15 @@ module Pod
build_setting["IPHONEOS_DEPLOYMENT_TARGET"].should == '6.0' build_setting["IPHONEOS_DEPLOYMENT_TARGET"].should == '6.0'
end end
end end
it "sets STRIP_INSTALLED_PRODUCT to NO for all configurations for the whole project" do
@installer.stubs(:aggregate_targets).returns([])
@installer.send(:prepare_pods_project)
@installer.pods_project.build_settings('Debug')["STRIP_INSTALLED_PRODUCT"].should == "NO"
@installer.pods_project.build_settings('Test')["STRIP_INSTALLED_PRODUCT"].should == "NO"
@installer.pods_project.build_settings('Release')["STRIP_INSTALLED_PRODUCT"].should == "NO"
@installer.pods_project.build_settings('App Store')["STRIP_INSTALLED_PRODUCT"].should == "NO"
end
end end
#--------------------------------------# #--------------------------------------#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment