Commit 55aa2f01 authored by Marius Rackwitz's avatar Marius Rackwitz

[PodTarget] Enforce that specs are given

parent d4aed526
...@@ -28,6 +28,7 @@ module Pod ...@@ -28,6 +28,7 @@ module Pod
# @param [Bool] scoped @see scoped # @param [Bool] scoped @see scoped
# #
def initialize(specs, target_definitions, sandbox, scoped = false) def initialize(specs, target_definitions, sandbox, scoped = false)
raise "Can't initialize a PodTarget without specs!" if specs.nil? || specs.empty?
@specs = specs @specs = specs
@target_definitions = target_definitions @target_definitions = target_definitions
@sandbox = sandbox @sandbox = sandbox
......
...@@ -463,8 +463,9 @@ module Pod ...@@ -463,8 +463,9 @@ module Pod
end end
it 'sets the deployment target for the whole project' do it 'sets the deployment target for the whole project' do
pod_target_ios = PodTarget.new([], nil, config.sandbox) spec = fixture_spec('banana-lib/BananaLib.podspec')
pod_target_osx = PodTarget.new([], nil, config.sandbox) pod_target_ios = PodTarget.new([spec], nil, config.sandbox)
pod_target_osx = PodTarget.new([spec], nil, config.sandbox)
pod_target_ios.stubs(:platform).returns(Platform.new(:ios, '6.0')) pod_target_ios.stubs(:platform).returns(Platform.new(:ios, '6.0'))
pod_target_osx.stubs(:platform).returns(Platform.new(:osx, '10.8')) pod_target_osx.stubs(:platform).returns(Platform.new(:osx, '10.8'))
aggregate_target_ios = AggregateTarget.new(nil, config.sandbox) aggregate_target_ios = AggregateTarget.new(nil, config.sandbox)
......
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