Permalink
Browse files

[Podfile] Check that platforms actually have a deployment target.

Closes #305.
  • Loading branch information...
1 parent 972cb59 commit 7bf8692caa0a4b2df0ae39a9f10e65095fc269f6 @fabiopelosin fabiopelosin committed Jun 9, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 spec/unit/podfile_spec.rb
View
6 spec/unit/podfile_spec.rb
@@ -251,6 +251,12 @@
@podfile.target_definitions[:osx_target].platform.should == :osx
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
@podfile.target_definitions[:osx_target].should.be.exclusive
@podfile.target_definitions[:nested_osx_target].should.not.be.exclusive

0 comments on commit 7bf8692

Please sign in to comment.