Commit fc65b853 authored by Marius Rackwitz's avatar Marius Rackwitz

[Spec] Fix spec for PodTargetInstaller

parent ef1a511e
...@@ -6,7 +6,7 @@ module Pod ...@@ -6,7 +6,7 @@ module Pod
before do before do
config.sandbox.prepare config.sandbox.prepare
@podfile = Podfile.new do @podfile = Podfile.new do
platform :ios platform :ios, '6.0'
xcodeproj 'dummy' xcodeproj 'dummy'
end end
@target_definition = @podfile.target_definitions['Pods'] @target_definition = @podfile.target_definitions['Pods']
...@@ -26,7 +26,6 @@ module Pod ...@@ -26,7 +26,6 @@ module Pod
end end
@pod_target = PodTarget.new([@spec], [@target_definition], config.sandbox) @pod_target = PodTarget.new([@spec], [@target_definition], config.sandbox)
@pod_target.stubs(:platform).returns(Platform.new(:ios, '6.0'))
@pod_target.file_accessors = [file_accessor] @pod_target.file_accessors = [file_accessor]
@pod_target.user_build_configurations = { 'Debug' => :debug, 'Release' => :release } @pod_target.user_build_configurations = { 'Debug' => :debug, 'Release' => :release }
@installer = Installer::PodTargetInstaller.new(config.sandbox, @pod_target) @installer = Installer::PodTargetInstaller.new(config.sandbox, @pod_target)
...@@ -94,11 +93,11 @@ module Pod ...@@ -94,11 +93,11 @@ module Pod
describe 'with a scoped pod target' do describe 'with a scoped pod target' do
before do before do
@pod_target = @pod_target.scoped.first @pod_target = @pod_target.scoped.first
@installer = Installer::PodTargetInstaller.new(config.sandbox, @pod_target)
end end
it 'adds file references for the support files of the target' do it 'adds file references for the support files of the target' do
@installer.install! @installer.install!
@project.support_files_group
group = @project['Pods/BananaLib/Support Files'] group = @project['Pods/BananaLib/Support Files']
group.children.map(&:display_name).sort.should == [ group.children.map(&:display_name).sort.should == [
'Pods-BananaLib-Private.xcconfig', 'Pods-BananaLib-Private.xcconfig',
......
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