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
podspec = file.realpath.to_s
platform = @platform
podfile = Pod::Podfile.new do
platform(platform)
platform(platform.to_sym, platform.deployment_target)
pod name, :podspec => podspec
end
podfile
......
......@@ -61,7 +61,7 @@ describe "Pod::Command::Spec::Linter" do
linter.warnings.should.not.be.empty
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.*/, ""))
linter = Pod::Command::Spec::Linter.new(spec)
linter.lenient, linter.quick = true, true
......@@ -107,7 +107,7 @@ describe "Pod::Command::Spec::Linter" do
linter.errors.join(' | ').should.include "The resources did not match any file"
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.stubs(:available_platforms).returns([Pod::Platform.new(:ios, "5.0")])
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