Commit d0ebef6a authored by Fabio Pelosin's avatar Fabio Pelosin

[Platform] Specify deployment target only on initialization.

parent 7bf8692c
...@@ -88,12 +88,6 @@ module Pod ...@@ -88,12 +88,6 @@ module Pod
# #
attr_reader :declared_deployment_target 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. # @param [Platform, Symbol] other The other platform to check.
# #
# @note If a symbol is passed the comparison does not take into account # @note If a symbol is passed the comparison does not take into account
......
...@@ -56,14 +56,6 @@ describe Pod::Platform do ...@@ -56,14 +56,6 @@ describe Pod::Platform do
p.deployment_target.should == Pod::Version.new('4.0.0') p.deployment_target.should == Pod::Version.new('4.0.0')
end 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 it "provides a default deployment target on initialization" do
p = Pod::Platform.new(:ios) p = Pod::Platform.new(:ios)
p.deployment_target.should == Pod::Version.new('4.3') p.deployment_target.should == Pod::Version.new('4.3')
......
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