Commit 2e872f0f authored by Eloy Duran's avatar Eloy Duran

Improve integration spec for multiple targets.

parent 8c2adafa
...@@ -296,11 +296,30 @@ else ...@@ -296,11 +296,30 @@ else
installer = Pod::Installer.new(podfile) installer = Pod::Installer.new(podfile)
installer.install! installer.install!
#project = Pod::Xcode::Project.new(config.project_pods_root + 'Pods.xcodeproj') project = Xcodeproj::Project.new(config.project_pods_root + 'Pods.xcodeproj')
#p project project.targets.each do |target|
#project.targets.each do |target| #target.source_build_phase
#target.source_build_phases. phase = target.buildPhases.find { |phase| phase.is_a?(Xcodeproj::Project::PBXSourcesBuildPhase) }
#end files = phase.files.map(&:file).map(&:name)
p target.productName
p files
case target.productName
when 'Pods'
files.should.include "ASIHTTPRequest.m"
files.should.not.include "SSZipArchive.m"
files.should.not.include "JSONKit.m"
when 'Pods-debug'
files.should.include "ASIHTTPRequest.m"
files.should.include "SSZipArchive.m"
files.should.not.include "JSONKit.m"
when 'Pods-test'
files.should.not.include "ASIHTTPRequest.m"
files.should.not.include "SSZipArchive.m"
files.should.include "JSONKit.m"
else
raise "ohnoes"
end
end
root = config.project_pods_root root = config.project_pods_root
(root + 'Pods.xcconfig').should.exist (root + 'Pods.xcconfig').should.exist
......
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