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
da8b99e3
Commit
da8b99e3
authored
Apr 05, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[#197] Fix specs
parent
f16f6e1e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
integration_spec.rb
spec/integration_spec.rb
+3
-3
documentation_spec.rb
spec/unit/generator/documentation_spec.rb
+6
-5
No files found.
spec/integration_spec.rb
View file @
da8b99e3
...
...
@@ -134,7 +134,7 @@ else
change_log
.
should
.
not
.
include
'1.3'
end
if
Pod
::
Generator
::
Documentation
.
appledoc_installed
?
if
!
`which appledoc`
.
strip
.
empty
?
it
"generates documentation of all pods by default"
do
create_config!
...
...
@@ -148,9 +148,9 @@ else
installer
.
install!
doc
=
(
config
.
project_pods_root
+
'Documentation/JSONKit/html/index.html'
).
read
doc
.
should
.
include?
(
'<title>JSONKit
(1.4)
Reference</title>'
)
doc
.
should
.
include?
(
'<title>JSONKit
1.4
Reference</title>'
)
doc
=
(
config
.
project_pods_root
+
'Documentation/SSToolkit/html/index.html'
).
read
doc
.
should
.
include?
(
'<title>SSToolkit
(0.1.2)
Reference</title>'
)
doc
.
should
.
include?
(
'<title>SSToolkit
0.1.2
Reference</title>'
)
end
else
puts
"[!] Skipping documentation generation specs, because appledoc can't be found."
...
...
spec/unit/generator/documentation_spec.rb
View file @
da8b99e3
...
...
@@ -20,14 +20,14 @@ describe Pod::Generator::Documentation do
it
'returns the Pod documentation documentation files'
do
@doc_installer
.
files
.
sort
.
should
==
[
@pod
.
root
+
"Classes/Banana.m"
,
@pod
.
root
+
"Classes/Banana.h"
,
(
@pod
.
root
+
"Classes/Banana.m"
).
to_s
,
(
@pod
.
root
+
"Classes/Banana.h"
).
to_s
,
].
sort
end
it
'returns the Pod documentation options'
do
@doc_installer
.
generate_
appledoc_options
.
should
==
[
'--project-name'
,
'BananaLib
(1.0)
'
,
@doc_installer
.
appledoc_options
.
should
==
[
'--project-name'
,
'BananaLib
1.0
'
,
'--docset-desc'
,
'Full of chunky bananas.'
,
'--project-company'
,
'Banana Corp, Monkey Boy'
,
'--docset-copyright'
,
'Banana Corp, Monkey Boy'
,
...
...
@@ -35,6 +35,7 @@ describe Pod::Generator::Documentation do
'--ignore'
,
'.m'
,
'--keep-undocumented-objects'
,
'--keep-undocumented-members'
,
'--keep-intermediate-files'
,
'--index-desc'
,
'README'
,
# TODO We need to either make this a hash so that options can be merged
# or not use any defaults in case an options are specified.
...
...
@@ -43,7 +44,7 @@ describe Pod::Generator::Documentation do
]
end
if
Pod
::
Generator
::
Documentation
.
appledoc_installed
?
if
!
`which appledoc`
.
strip
.
empty
?
before
do
@doc_installer
.
generate
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