Permalink
Browse files

[Podfile] Remove disabled specs concerning validation.

  • Loading branch information...
1 parent 9b45c7d commit 2039fdb5b5b83b29860809846d5e23bb7f865003 @fabiopelosin fabiopelosin committed Jun 25, 2012
Showing with 0 additions and 25 deletions.
  1. +0 −4 lib/cocoapods/podfile.rb
  2. +0 −21 spec/unit/podfile_spec.rb
View
@@ -460,10 +460,6 @@ def post_install!(installer)
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
View
@@ -317,26 +317,5 @@
}.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

0 comments on commit 2039fdb

Please sign in to comment.