Commit 99cd1a5b authored by Eloy Durán's avatar Eloy Durán

Copy platform name and deployment target seperately.

parent cae31b0d
...@@ -257,7 +257,7 @@ module Pod ...@@ -257,7 +257,7 @@ module Pod
podspec = file.realpath.to_s podspec = file.realpath.to_s
platform = @platform platform = @platform
podfile = Pod::Podfile.new do podfile = Pod::Podfile.new do
platform(platform) platform(platform.to_sym, platform.deployment_target)
pod name, :podspec => podspec pod name, :podspec => podspec
end end
podfile podfile
......
...@@ -61,7 +61,7 @@ describe "Pod::Command::Spec::Linter" do ...@@ -61,7 +61,7 @@ describe "Pod::Command::Spec::Linter" do
linter.warnings.should.not.be.empty linter.warnings.should.not.be.empty
end end
it "validates in lenient mode if there are no erros but there are warnings" do it "validates in lenient mode if there are no errors but there are warnings" do
spec, file = write_podspec(stub_podspec(/.*license.*/, "")) spec, file = write_podspec(stub_podspec(/.*license.*/, ""))
linter = Pod::Command::Spec::Linter.new(spec) linter = Pod::Command::Spec::Linter.new(spec)
linter.lenient, linter.quick = true, true linter.lenient, linter.quick = true, true
...@@ -107,7 +107,7 @@ describe "Pod::Command::Spec::Linter" do ...@@ -107,7 +107,7 @@ describe "Pod::Command::Spec::Linter" do
linter.errors.join(' | ').should.include "The resources did not match any file" linter.errors.join(' | ').should.include "The resources did not match any file"
end end
it "Uses the deployment target of the specification" do it "uses the deployment target of the specification" do
spec, file = write_podspec(stub_podspec) spec, file = write_podspec(stub_podspec)
spec.stubs(:available_platforms).returns([Pod::Platform.new(:ios, "5.0")]) spec.stubs(:available_platforms).returns([Pod::Platform.new(:ios, "5.0")])
linter = Pod::Command::Spec::Linter.new(spec) linter = Pod::Command::Spec::Linter.new(spec)
......
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