Commit 2039fdb5 authored by Fabio Pelosin's avatar Fabio Pelosin

[Podfile] Remove disabled specs concerning validation.

parent 9b45c7d5
......@@ -460,10 +460,6 @@ module Pod
end
def validate!
#lines = []
#lines << "* the `platform` attribute should be either `:osx` or `:ios`" unless @platform && [:osx, :ios].include?(@platform.name)
#lines << "* no dependencies were specified, which is, well, kinda pointless" if dependencies.empty?
#raise(Informative, (["The Podfile at `#{@defined_in_file}' is invalid:"] + lines).join("\n")) unless lines.empty?
end
end
end
......@@ -317,26 +317,5 @@ describe "Pod::Podfile" do
}.should.raise Pod::Informative
exception.message.should.include "Xcode project"
end
xit "raises if no platform is specified" do
exception = lambda {
Pod::Podfile.new {}.validate!
}.should.raise Pod::Informative
exception.message.should.include "platform"
end
xit "raises if an invalid platform is specified" do
exception = lambda {
Pod::Podfile.new { platform :windows }.validate!
}.should.raise Pod::Informative
exception.message.should.include "platform"
end
xit "raises if no dependencies were specified" do
exception = lambda {
Pod::Podfile.new {}.validate!
}.should.raise Pod::Informative
exception.message.should.include "dependencies"
end
end
end
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