Commit fe1f812c authored by Eloy Duran's avatar Eloy Duran

Add integration spec for multiple targets.

parent 681b770d
......@@ -145,6 +145,32 @@ else
project.source_files.should == installer.xcodeproj.source_files
end
it "creates a project with multiple targets" do
Pod::Source.reset!
Pod::Spec::Set.reset!
podfile = Pod::Podfile.new do
# first ensure that the correct info is available to the specs when they load
config.rootspec = self
self.platform platform
target(:debug) { dependency 'SSZipArchive' }
target(:test, :exclusive => true) { dependency 'JSONKit' }
dependency 'ASIHTTPRequest'
end
installer = Pod::Installer.new(podfile)
installer.install!
puts "\n[!] Compiling static library..."
Dir.chdir(config.project_pods_root) do
puts `ls -l`
#system("xcodebuild > /dev/null 2>&1").should == true
system("xcodebuild -target Pods").should == true
system("xcodebuild -target Pods-debug").should == true
system("xcodebuild -target Pods-test").should == true
end
end
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