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
b1d0154e
Commit
b1d0154e
authored
Jun 03, 2013
by
Michele
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing more tests to look for files in the correct spots.
parent
a088a783
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
21 deletions
+8
-21
sandbox.rb
lib/cocoapods/sandbox.rb
+0
-8
analyzer_spec.rb
spec/unit/installer/analyzer_spec.rb
+2
-2
project_spec.rb
spec/unit/project_spec.rb
+6
-6
sandbox_spec.rb
spec/unit/sandbox_spec.rb
+0
-5
No files found.
lib/cocoapods/sandbox.rb
View file @
b1d0154e
...
...
@@ -87,14 +87,6 @@ module Pod
#
attr_accessor
:project
# Removes the sandbox.
#
# @return [void]
#
def
implode
generated_dir_root
.
rmtree
end
# Removes the files of the Pod with the given name from the sandbox.
#
# @return [void]
...
...
spec/unit/installer/analyzer_spec.rb
View file @
b1d0154e
...
...
@@ -76,9 +76,9 @@ module Pod
it
"generates the libraries which represent the target definitions"
do
libs
=
@analyzer
.
analyze
.
libraries
libs
.
map
(
&
:name
).
should
==
[
'Pods
/Generated
'
]
libs
.
map
(
&
:name
).
should
==
[
'Pods'
]
lib
=
libs
.
first
lib
.
support_files_root
.
should
==
config
.
sandbox
.
root
lib
.
support_files_root
.
should
==
config
.
sandbox
.
generated_dir_
root
lib
.
user_project_path
.
to_s
.
should
.
include
'SampleProject/SampleProject'
lib
.
client_root
.
to_s
.
should
.
include
'SampleProject'
...
...
spec/unit/project_spec.rb
View file @
b1d0154e
...
...
@@ -77,27 +77,27 @@ module Pod
@project
.
add_file_references
(
source_files
,
'BananaLib'
,
@project
.
pods
)
group
=
@project
[
'Pods/BananaLib'
]
group
.
should
.
not
.
be
.
nil
group
.
children
.
map
(
&
:path
).
should
==
[
"A_POD/some_file.m"
]
group
.
children
.
map
(
&
:path
).
should
==
[
"
Sources/
A_POD/some_file.m"
]
end
it
"adds the only one file reference for a given absolute path"
do
source_files
=
[
config
.
sandbox
.
root
+
"A_POD/
some_file.m"
]
source_files
=
[
config
.
sandbox
.
pod_dir
(
"A_POD"
)
+
"
some_file.m"
]
@project
.
add_file_references
(
source_files
,
'BananaLib'
,
@project
.
pods
)
@project
.
add_file_references
(
source_files
,
'BananaLib'
,
@project
.
pods
)
group
=
@project
[
'Pods/BananaLib'
]
group
.
children
.
count
.
should
==
1
group
.
children
.
first
.
path
.
should
==
"A_POD/some_file.m"
group
.
children
.
first
.
path
.
should
==
"
Sources/
A_POD/some_file.m"
end
it
"returns the file reference for a given source file"
do
file
=
config
.
sandbox
.
root
+
"A_POD/
some_file.m"
file
=
config
.
sandbox
.
pod_dir
(
"A_POD"
)
+
"
some_file.m"
@project
.
add_file_references
([
file
],
'BananaLib'
,
@project
.
pods
)
file_reference
=
@project
.
file_reference
(
file
)
file_reference
.
path
.
should
==
"A_POD/some_file.m"
file_reference
.
path
.
should
==
"
Sources/
A_POD/some_file.m"
end
it
"adds the Podfile configured as a Ruby file"
do
@project
.
add_podfile
(
config
.
sandbox
.
root
+
'../Podfile'
)
@project
.
add_podfile
(
config
.
sandbox
.
generated_dir_
root
+
'../Podfile'
)
f
=
@project
[
'Podfile'
]
f
.
name
.
should
==
'Podfile'
f
.
source_tree
.
should
==
'SOURCE_ROOT'
...
...
spec/unit/sandbox_spec.rb
View file @
b1d0154e
...
...
@@ -31,11 +31,6 @@ module Pod
@sandbox
.
build_headers
.
root
.
should
==
temporary_directory
+
'Sandbox/Generated/Headers/BuildHeaders'
end
it
"deletes the entire root directory on implode"
do
@sandbox
.
implode
File
.
directory?
(
temporary_directory
+
'Sandbox/Generated'
).
should
.
be
.
false
end
it
"cleans any trace of the Pod with the given name"
do
pod_root
=
@sandbox
.
pod_dir
(
'BananaLib'
)
pod_root
.
mkpath
...
...
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