Skip to content

Commit

Permalink
[Platform] Specify deployment target only on initialization.
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiopelosin committed Jun 9, 2012
1 parent 7bf8692 commit d0ebef6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
6 changes: 0 additions & 6 deletions lib/cocoapods/platform.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 0 additions & 8 deletions spec/unit/platform_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand Down

0 comments on commit d0ebef6

Please sign in to comment.