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
fd976893
Commit
fd976893
authored
Mar 13, 2012
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated tests
parent
726d9f59
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
3 deletions
+41
-3
command_spec.rb
spec/functional/command_spec.rb
+1
-1
specification_spec.rb
spec/unit/specification_spec.rb
+40
-2
No files found.
spec/functional/command_spec.rb
View file @
fd976893
...
@@ -43,7 +43,7 @@ describe "Pod::Command" do
...
@@ -43,7 +43,7 @@ describe "Pod::Command" do
path
=
temporary_directory
+
'Bananas.podspec'
path
=
temporary_directory
+
'Bananas.podspec'
spec
=
Pod
::
Specification
.
from_file
(
path
)
spec
=
Pod
::
Specification
.
from_file
(
path
)
spec
.
name
.
should
==
'Bananas'
spec
.
name
.
should
==
'Bananas'
spec
.
license
.
should
==
'MIT'
spec
.
license
.
should
==
{
:type
=>
"MIT"
,
:file
=>
"LICENSE"
}
spec
.
version
.
should
==
Pod
::
Version
.
new
(
'1.0.0'
)
spec
.
version
.
should
==
Pod
::
Version
.
new
(
'1.0.0'
)
spec
.
summary
.
should
==
'A short description of Bananas.'
spec
.
summary
.
should
==
'A short description of Bananas.'
spec
.
homepage
.
should
==
'http://EXAMPLE/Bananas'
spec
.
homepage
.
should
==
'http://EXAMPLE/Bananas'
...
...
spec/unit/specification_spec.rb
View file @
fd976893
...
@@ -258,9 +258,47 @@ describe "A Pod::Specification, in general," do
...
@@ -258,9 +258,47 @@ describe "A Pod::Specification, in general," do
@spec
.
platform
.
should
==
:ios
@spec
.
platform
.
should
==
:ios
end
end
it
"returns the license of the Pod's code"
do
it
"returns the license of the Pod"
do
@spec
.
license
=
{
:type
=>
'MIT'
,
:file
=>
'LICENSE'
,
:range
=>
1
..
15
,
:text
=>
'Permission is hereby granted ...'
}
@spec
.
license
.
should
==
{
:type
=>
'MIT'
,
:file
=>
'LICENSE'
,
:range
=>
1
..
15
,
:text
=>
'Permission is hereby granted ...'
}
end
it
"returns the license of the Pod specified in the old format"
do
@spec
.
license
=
'MIT'
@spec
.
license
=
'MIT'
@spec
.
license
.
should
==
'MIT'
@spec
.
license
.
should
==
{
:type
=>
'MIT'
,
}
end
it
"returns the documentation of the Pod"
do
@spec
.
documentation
=
{
:html
=>
'http://EXAMPLE/#{@name}/documentation'
,
:atom
=>
'http://EXAMPLE/#{@name}/com.company.#{@name}.atom'
,
:appledoc
=>
[
'--project-name'
,
'#{@name}'
,
'--project-company'
,
'"Company Name"'
,
'--company-id'
,
'com.company'
,
'--ignore'
,
'Common'
,
'--ignore'
,
'.m'
]
}
@spec
.
documentation
.
should
==
{
:html
=>
'http://EXAMPLE/#{@name}/documentation'
,
:atom
=>
'http://EXAMPLE/#{@name}/com.company.#{@name}.atom'
,
:appledoc
=>
[
'--project-name'
,
'#{@name}'
,
'--project-company'
,
'"Company Name"'
,
'--company-id'
,
'com.company'
,
'--ignore'
,
'Common'
,
'--ignore'
,
'.m'
]
}
end
end
it
"takes a list of paths to clean"
do
it
"takes a list of paths to clean"
do
...
...
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