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
c89ac297
Commit
c89ac297
authored
Oct 25, 2015
by
Samuel Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PodTargetInstaller] Add spec for creating header_mappings_dir copy phases
parent
2b75d11c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
48 additions
and
2 deletions
+48
-2
.gitignore
.gitignore
+3
-2
snake.tar.gz
spec/fixtures/snake.tar.gz
+0
-0
pod_target_installer_spec.rb
...t/installer/target_installer/pod_target_installer_spec.rb
+45
-0
No files found.
.gitignore
View file @
c89ac297
...
...
@@ -16,12 +16,13 @@ DerivedData
/doc
# Specs
tmp
spec/fixtures/banana-lib
spec/fixtures/cache
spec/fixtures/chameleon
spec/fixtures/integration/Headers/
spec/fixtures/snake
spec/fixtures/vcr
spec/fixtures/cache
tmp
# Examples
examples/**/Podfile.lock
...
...
spec/fixtures/snake.tar.gz
0 → 100644
View file @
c89ac297
File added
spec/unit/installer/target_installer/pod_target_installer_spec.rb
View file @
c89ac297
...
...
@@ -239,6 +239,51 @@ module Pod
#--------------------------------------------------------------------------------#
it
'creates custom copy files phases for framework pods with header_mappings_dirs'
do
@project
.
add_pod_group
(
'snake'
,
fixture
(
'snake'
))
@pod_target
=
fixture_pod_target
(
'snake/snake.podspec'
,
@target_definition
)
@pod_target
.
user_build_configurations
=
{
'Debug'
=>
:debug
,
'Release'
=>
:release
}
@pod_target
.
stubs
(
:requires_frameworks?
=>
true
)
group
=
@project
.
group_for_spec
(
'snake'
)
@pod_target
.
file_accessors
.
first
.
source_files
.
each
do
|
file
|
@project
.
add_file_reference
(
file
,
group
)
end
@installer
.
stubs
(
:target
).
returns
(
@pod_target
)
@installer
.
install!
target
=
@project
.
native_targets
.
first
target
.
name
.
should
==
'snake'
target
.
headers_build_phase
.
files
.
reject
{
|
build_file
|
build_file
.
settings
.
nil?
}.
map
(
&
:display_name
).
should
==
[
'snake-umbrella.h'
]
copy_files_build_phases
=
target
.
copy_files_build_phases
.
sort_by
(
&
:name
)
copy_files_build_phases
.
map
(
&
:name
).
should
==
[
'Copy . Public Headers'
,
'Copy A Public Headers'
,
'Copy B Public Headers'
,
'Copy C Public Headers'
,
]
copy_files_build_phases
.
map
(
&
:symbol_dst_subfolder_spec
).
should
==
Array
.
new
(
4
,
:products_directory
)
copy_files_build_phases
.
map
(
&
:dst_path
).
should
==
[
'$(PUBLIC_HEADERS_FOLDER_PATH)/.'
,
'$(PUBLIC_HEADERS_FOLDER_PATH)/A'
,
'$(PUBLIC_HEADERS_FOLDER_PATH)/B'
,
'$(PUBLIC_HEADERS_FOLDER_PATH)/C'
,
]
copy_files_build_phases
.
map
{
|
phase
|
phase
.
files_references
.
map
(
&
:path
)
}.
should
==
[
[
'Code/snake.h'
],
[
'Code/A/Boa.h'
,
'Code/A/Garden.h'
,
'Code/A/Rattle.h'
],
[
'Code/B/Boa.h'
,
'Code/B/Garden.h'
,
'Code/B/Rattle.h'
],
[
'Code/C/Boa.h'
,
'Code/C/Garden.h'
,
'Code/C/Rattle.h'
],
]
end
#--------------------------------------------------------------------------------#
describe
'concerning compiler flags'
do
before
do
@spec
=
Pod
::
Spec
.
new
...
...
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