Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
cocoapods
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gengmeiios
cocoapods
Commits
2039fdb5
Commit
2039fdb5
authored
Jun 25, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Podfile] Remove disabled specs concerning validation.
parent
9b45c7d5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
25 deletions
+0
-25
podfile.rb
lib/cocoapods/podfile.rb
+0
-4
podfile_spec.rb
spec/unit/podfile_spec.rb
+0
-21
No files found.
lib/cocoapods/podfile.rb
View file @
2039fdb5
...
@@ -460,10 +460,6 @@ module Pod
...
@@ -460,10 +460,6 @@ module Pod
end
end
def
validate!
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
end
end
end
spec/unit/podfile_spec.rb
View file @
2039fdb5
...
@@ -317,26 +317,5 @@ describe "Pod::Podfile" do
...
@@ -317,26 +317,5 @@ describe "Pod::Podfile" do
}.
should
.
raise
Pod
::
Informative
}.
should
.
raise
Pod
::
Informative
exception
.
message
.
should
.
include
"Xcode project"
exception
.
message
.
should
.
include
"Xcode project"
end
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
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment