Commit 73a07768 authored by Marius Rackwitz's avatar Marius Rackwitz

[Spec] Change label of target definition in spec for AggregateTarget

Choose a label for the target definition which contains whitespaces.
parent a0a9a853
......@@ -118,9 +118,9 @@ def fixture_file_accessor(name, platform = :ios)
Pod::Sandbox::FileAccessor.new(path_list, spec.consumer(platform))
end
def fixture_pod_target(name, platform = :ios)
def fixture_pod_target(name, platform = :ios, target_definition = nil)
spec = fixture_spec(name)
target_definition = Pod::Podfile::TargetDefinition.new('Pods', nil)
target_definition ||= Pod::Podfile::TargetDefinition.new('Pods', nil)
Pod::PodTarget.new([spec], target_definition, config.sandbox).tap do |pod_target|
pod_target.stubs(:platform).returns(platform)
pod_target.file_accessors << fixture_file_accessor(name, platform)
......
......@@ -179,7 +179,7 @@ module Pod
describe 'With frameworks' do
before do
@pod_target = fixture_pod_target('orange-framework/OrangeFramework.podspec')
@pod_target = fixture_pod_target('orange-framework/OrangeFramework.podspec', :ios, Podfile::TargetDefinition.new('iOS Example', nil))
@target = AggregateTarget.new(@pod_target.target_definition, config.sandbox)
@target.pod_targets = [@pod_target]
end
......@@ -189,15 +189,15 @@ module Pod
end
it 'returns the product name' do
@target.product_name.should == 'Pods.framework'
@target.product_name.should == 'Pods-iOS Example.framework'
end
it 'returns the framework name' do
@target.framework_name.should == 'Pods.framework'
@target.framework_name.should == 'Pods-iOS Example.framework'
end
it 'returns the library name' do
@target.static_library_name.should == 'libPods.a'
@target.static_library_name.should == 'libPods-iOS Example.a'
end
it 'returns :framework as product type' do
......
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