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
5283a9f4
Commit
5283a9f4
authored
Jun 03, 2013
by
Michele
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
External sources and sandbox analyser spec tests fixed to work with new migrator.
parent
d4e53411
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
11 deletions
+11
-11
external_sources_spec.rb
spec/unit/external_sources_spec.rb
+7
-7
sandbox_analyzer_spec.rb
spec/unit/installer/analyzer/sandbox_analyzer_spec.rb
+4
-4
No files found.
spec/unit/external_sources_spec.rb
View file @
5283a9f4
...
@@ -56,7 +56,7 @@ module Pod
...
@@ -56,7 +56,7 @@ module Pod
it
"pre-downloads the Pod and stores the relevant information in the sandbox"
do
it
"pre-downloads the Pod and stores the relevant information in the sandbox"
do
sandbox
=
config
.
sandbox
sandbox
=
config
.
sandbox
@external_source
.
send
(
:pre_download
,
sandbox
)
@external_source
.
send
(
:pre_download
,
sandbox
)
path
=
config
.
sandbox
.
root
+
'Local Podspecs/
Reachability.podspec'
path
=
config
.
sandbox
.
pod_dir
(
'Reachability'
)
+
'
Reachability.podspec'
path
.
should
.
exist?
path
.
should
.
exist?
sandbox
.
predownloaded_pods
.
should
==
[
"Reachability"
]
sandbox
.
predownloaded_pods
.
should
==
[
"Reachability"
]
sandbox
.
checkout_sources
.
should
==
{
sandbox
.
checkout_sources
.
should
==
{
...
@@ -82,7 +82,7 @@ module Pod
...
@@ -82,7 +82,7 @@ module Pod
it
"creates a copy of the podspec"
do
it
"creates a copy of the podspec"
do
@external_source
.
fetch
(
config
.
sandbox
)
@external_source
.
fetch
(
config
.
sandbox
)
path
=
config
.
sandbox
.
root
+
'Local Podspecs/
Reachability.podspec'
path
=
config
.
sandbox
.
pod_dir
(
'Reachability'
)
+
'
Reachability.podspec'
path
.
should
.
exist?
path
.
should
.
exist?
end
end
...
@@ -107,7 +107,7 @@ module Pod
...
@@ -107,7 +107,7 @@ module Pod
it
"creates a copy of the podspec"
do
it
"creates a copy of the podspec"
do
@external_source
.
fetch
(
config
.
sandbox
)
@external_source
.
fetch
(
config
.
sandbox
)
path
=
config
.
sandbox
.
root
+
'Local Podspecs/
SvnSource.podspec'
path
=
config
.
sandbox
.
pod_dir
(
'SvnSource'
)
+
'
SvnSource.podspec'
path
.
should
.
exist?
path
.
should
.
exist?
end
end
...
@@ -132,7 +132,7 @@ module Pod
...
@@ -132,7 +132,7 @@ module Pod
it
"creates a copy of the podspec"
do
it
"creates a copy of the podspec"
do
@external_source
.
fetch
(
config
.
sandbox
)
@external_source
.
fetch
(
config
.
sandbox
)
path
=
config
.
sandbox
.
root
+
'Local Podspecs/
MercurialSource.podspec'
path
=
config
.
sandbox
.
pod_dir
(
'MercurialSource'
)
+
'
MercurialSource.podspec'
path
.
should
.
exist?
path
.
should
.
exist?
end
end
...
@@ -159,7 +159,7 @@ module Pod
...
@@ -159,7 +159,7 @@ module Pod
it
"creates a copy of the podspec"
do
it
"creates a copy of the podspec"
do
@external_source
.
fetch
(
config
.
sandbox
)
@external_source
.
fetch
(
config
.
sandbox
)
path
=
config
.
sandbox
.
root
+
'Local Podspecs/Reachability.podspec'
path
=
config
.
sandbox
.
root
+
'
Generated/
Local Podspecs/Reachability.podspec'
path
.
should
.
exist?
path
.
should
.
exist?
end
end
...
@@ -215,7 +215,7 @@ module Pod
...
@@ -215,7 +215,7 @@ module Pod
it
"creates a copy of the podspec"
do
it
"creates a copy of the podspec"
do
@external_source
.
fetch
(
config
.
sandbox
)
@external_source
.
fetch
(
config
.
sandbox
)
path
=
config
.
sandbox
.
root
+
'Local Podspecs/
Reachability.podspec'
path
=
config
.
sandbox
.
pod_dir
(
'Reachability'
)
+
'
Reachability.podspec'
path
.
should
.
exist?
path
.
should
.
exist?
end
end
...
@@ -224,7 +224,7 @@ module Pod
...
@@ -224,7 +224,7 @@ module Pod
podfile_path
=
fixture
(
'integration/Podfile'
)
podfile_path
=
fixture
(
'integration/Podfile'
)
external_source
=
ExternalSources
.
from_dependency
(
dependency
,
podfile_path
)
external_source
=
ExternalSources
.
from_dependency
(
dependency
,
podfile_path
)
external_source
.
fetch
(
config
.
sandbox
)
external_source
.
fetch
(
config
.
sandbox
)
path
=
config
.
sandbox
.
root
+
'Local Podspecs/Reachability.podspec'
path
=
config
.
sandbox
.
root
+
'
Generated/
Local Podspecs/Reachability.podspec'
path
.
should
.
exist?
path
.
should
.
exist?
end
end
...
...
spec/unit/installer/analyzer/sandbox_analyzer_spec.rb
View file @
5283a9f4
...
@@ -160,9 +160,9 @@ module Pod
...
@@ -160,9 +160,9 @@ module Pod
#--------------------------------------#
#--------------------------------------#
it
"returns whether the folder containing the Pod with the given name
is empty
"
do
it
"returns whether the folder containing the Pod with the given name
exists
"
do
@analyzer
.
send
(
:folder_exist?
,
'
\
BananaLib'
).
should
.
be
.
false
@analyzer
.
send
(
:folder_exist?
,
'BananaLib'
).
should
.
be
.
false
path
=
temporary_directory
+
'Pods/Sources/BananaLib'
path
=
temporary_directory
+
'Pods/
Generated/
Sources/BananaLib'
path
.
mkpath
path
.
mkpath
@analyzer
.
send
(
:folder_exist?
,
'BananaLib'
).
should
.
be
.
true
@analyzer
.
send
(
:folder_exist?
,
'BananaLib'
).
should
.
be
.
true
...
@@ -170,7 +170,7 @@ module Pod
...
@@ -170,7 +170,7 @@ module Pod
it
"returns whether the folder containing the Pod with the given name is empty"
do
it
"returns whether the folder containing the Pod with the given name is empty"
do
@analyzer
.
send
(
:folder_empty?
,
'BananaLib'
).
should
.
be
.
true
@analyzer
.
send
(
:folder_empty?
,
'BananaLib'
).
should
.
be
.
true
path
=
temporary_directory
+
'Pods/Sources/BananaLib'
path
=
temporary_directory
+
'Pods/
Generated/
Sources/BananaLib'
path
.
mkpath
path
.
mkpath
File
.
open
(
path
+
"file"
,
"w"
)
{}
File
.
open
(
path
+
"file"
,
"w"
)
{}
@analyzer
.
send
(
:folder_empty?
,
'BananaLib'
).
should
.
be
.
false
@analyzer
.
send
(
:folder_empty?
,
'BananaLib'
).
should
.
be
.
false
...
...
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