Commit 0e8ebf0a authored by Marius Rackwitz's avatar Marius Rackwitz Committed by Samuel Giddins

[Spec] Test the integration with frameworks

Especially that the aggregate target's build product is weak linked.
parent cb00e841
...@@ -60,6 +60,22 @@ module Pod ...@@ -60,6 +60,22 @@ module Pod
build_file.should.not.be.nil build_file.should.not.be.nil
end end
it 'adds references to the Pods static framework to the Frameworks group' do
@pod_bundle.stubs(:requires_frameworks? => true)
@target_integrator.integrate!
@target_integrator.send(:user_project)['Frameworks/Pods.framework'].should.not.be.nil
end
it 'adds the Pods static framework to the "Link binary with libraries" build phase of each target' do
@pod_bundle.stubs(:requires_frameworks? => true)
@target_integrator.integrate!
target = @target_integrator.send(:native_targets).first
phase = target.frameworks_build_phase
build_file = phase.files.find { |f| f.file_ref.path == 'Pods.framework' }
build_file.should.not.be.nil
build_file.settings['ATTRIBUTES'].should == %w(Weak)
end
it 'adds a Copy Pods Resources build phase to each target' do it 'adds a Copy Pods Resources build phase to each target' do
@target_integrator.integrate! @target_integrator.integrate!
target = @target_integrator.send(:native_targets).first target = @target_integrator.send(:native_targets).first
......
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