Skip to content
Browse files

[Platform] Specify deployment target only on initialization.

  • Loading branch information...
1 parent 7bf8692 commit d0ebef6a7a38e2c259dd20de4edda1b99e61df98 @fabiopelosin fabiopelosin committed Jun 9, 2012
Showing with 0 additions and 14 deletions.
  1. +0 −6 lib/cocoapods/platform.rb
  2. +0 −8 spec/unit/platform_spec.rb
View
6 lib/cocoapods/platform.rb
@@ -88,12 +88,6 @@ def name
#
attr_reader :declared_deployment_target
- # @todo Deprecate
- #
- def deployment_target= (version)
- @deployment_target = Pod::Version.create(version)
- end
-
# @param [Platform, Symbol] other The other platform to check.
#
# @note If a symbol is passed the comparison does not take into account
View
8 spec/unit/platform_spec.rb
@@ -56,14 +56,6 @@
p.deployment_target.should == Pod::Version.new('4.0.0')
end
- it "allows to specify the deployment target after initialization" do
- p = Pod::Platform.new(:ios, '4.0.0')
- p.deployment_target = '4.0.0'
- p.deployment_target.should == Pod::Version.new('4.0.0')
- p.deployment_target = Pod::Version.new('4.0.0')
- p.deployment_target.should == Pod::Version.new('4.0.0')
- end
-
it "provides a default deployment target on initialization" do
p = Pod::Platform.new(:ios)
p.deployment_target.should == Pod::Version.new('4.3')

0 comments on commit d0ebef6

Please sign in to comment.
Something went wrong with that request. Please try again.