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
81c1043d
Commit
81c1043d
authored
Jul 03, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Spec#lint] Fix.
parent
1fd90d26
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
3 deletions
+11
-3
spec.rb
lib/cocoapods/command/spec.rb
+1
-1
spec_spec.rb
spec/functional/command/spec_spec.rb
+10
-2
No files found.
lib/cocoapods/command/spec.rb
View file @
81c1043d
...
...
@@ -80,7 +80,7 @@ module Pod
else
raise
Informative
,
count
==
1
?
"The spec did not pass validation."
:
"
#{
invalid_count
}
out of
#{
count
}
specs failed validation."
end
podspecs_tmp_dir
.
rmtree
if
tmp_dir
.
exist?
podspecs_tmp_dir
.
rmtree
if
podspecs_
tmp_dir
.
exist?
end
private
...
...
spec/functional/command/spec_spec.rb
View file @
81c1043d
...
...
@@ -115,8 +115,16 @@ describe "Pod::Command::Spec#lint" do
it
"lints the current working directory"
do
Dir
.
chdir
(
fixture
(
'spec-repos'
)
+
'master/JSONKit/1.4/'
)
do
output
=
command
(
'spec'
,
'lint'
,
'--quick'
,
'--only-errors'
).
run
output
.
should
.
include
"passed validation"
cmd
=
command
(
'spec'
,
'lint'
,
'--quick'
,
'--only-errors'
)
cmd
.
run
cmd
.
output
.
should
.
include
"passed validation"
end
end
it
"lints a remote podspec"
do
Dir
.
chdir
(
fixture
(
'spec-repos'
)
+
'master/JSONKit/1.4/'
)
do
cmd
=
command
(
'spec'
,
'lint'
,
'--quick'
,
'--only-errors'
,
'--silent'
,
'https://github.com/CocoaPods/Specs/raw/master/A2DynamicDelegate/2.0.1/A2DynamicDelegate.podspec'
)
VCR
.
use_cassette
(
'linter'
,
:record
=>
:new_episodes
)
{
lambda
{
cmd
.
run
}.
should
.
not
.
raise
}
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