Commit e5bf93c4 authored by Boris Bügling's avatar Boris Bügling

Specs for vendored libraries/frameworks.

parent 95e09e24
......@@ -81,12 +81,6 @@ module Pod
@xcconfig.to_hash['OTHER_LDFLAGS'].should.include '-l"Pods-BananaLib"'
end
it 'does not link with the aggregate integration library target if it does not contain source files' do
@pod_target.file_accessors.first.stubs(:source_files).returns([])
@xcconfig = @generator.generate
@xcconfig.to_hash['OTHER_LDFLAGS'].should.not.include '-l"Pods-BananaLib"'
end
it 'does not links the pod targets with the aggregate integration library target for non-whitelisted configuration' do
@generator = AggregateXCConfig.new(@target, 'Debug')
@xcconfig = @generator.generate
......@@ -99,6 +93,29 @@ module Pod
#-----------------------------------------------------------------------#
describe "if a pod target does not contain source files" do
before do
@pod_target.file_accessors.first.stubs(:source_files).returns([])
@xcconfig = @generator.generate
end
it 'does not link with the aggregate integration library target' do
@xcconfig.to_hash['OTHER_LDFLAGS'].should.not.include '-l"Pods-BananaLib"'
end
it 'does link with vendored frameworks' do
@xcconfig.to_hash['OTHER_LDFLAGS'].should.not.include '-FBananaLib'
end
it 'does link with vendored libraries' do
@xcconfig.to_hash['OTHER_LDFLAGS'].should.not.include '-lBananaLib'
end
end
#-----------------------------------------------------------------------#
before do
@path = temporary_directory + 'sample.xcconfig'
@generator.save_as(@path)
......
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