Skip to content

Commit

Permalink
[Podfile] Check that platforms actually have a deployment target.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiopelosin committed Jun 9, 2012
1 parent 972cb59 commit 7bf8692
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions spec/unit/podfile_spec.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -251,6 +251,12 @@
@podfile.target_definitions[:osx_target].platform.should == :osx @podfile.target_definitions[:osx_target].platform.should == :osx
end end


it "assigs a deployment target to the platforms if not specified" do
@podfile.target_definitions[:default].platform.deployment_target.to_s.should == '4.3'
@podfile.target_definitions[:test].platform.deployment_target.to_s.should == '4.3'
@podfile.target_definitions[:osx_target].platform.deployment_target.to_s.should == '10.6'
end

it "autmatically marks a target as exclusive if the parent platform doesn't match" do it "autmatically marks a target as exclusive if the parent platform doesn't match" do
@podfile.target_definitions[:osx_target].should.be.exclusive @podfile.target_definitions[:osx_target].should.be.exclusive
@podfile.target_definitions[:nested_osx_target].should.not.be.exclusive @podfile.target_definitions[:nested_osx_target].should.not.be.exclusive
Expand Down

0 comments on commit 7bf8692

Please sign in to comment.