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
822bc730
Commit
822bc730
authored
Sep 27, 2015
by
Samuel Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[PodTargetInstaller] Add specs for removing header folder paths for static lib pods
parent
a9209776
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
pod_target_installer_spec.rb
...t/installer/target_installer/pod_target_installer_spec.rb
+21
-0
No files found.
spec/unit/installer/target_installer/pod_target_installer_spec.rb
View file @
822bc730
...
@@ -71,6 +71,27 @@ module Pod
...
@@ -71,6 +71,27 @@ module Pod
#--------------------------------------#
#--------------------------------------#
describe
'headers folder paths'
do
it
'does not set them for framework targets'
do
@pod_target
.
stubs
(
:requires_frameworks?
=>
true
)
@installer
.
install!
@project
.
targets
.
first
.
build_configurations
.
each
do
|
config
|
config
.
build_settings
[
'PUBLIC_HEADERS_FOLDER_PATH'
].
should
.
be
.
nil
config
.
build_settings
[
'PRIVATE_HEADERS_FOLDER_PATH'
].
should
.
be
.
nil
end
end
it
'empties them for non-framework targets'
do
@installer
.
install!
@project
.
targets
.
first
.
build_configurations
.
each
do
|
config
|
config
.
build_settings
[
'PUBLIC_HEADERS_FOLDER_PATH'
].
should
.
be
.
empty
config
.
build_settings
[
'PRIVATE_HEADERS_FOLDER_PATH'
].
should
.
be
.
empty
end
end
end
#--------------------------------------#
it
'adds the source files of each pod to the target of the Pod library'
do
it
'adds the source files of each pod to the target of the Pod library'
do
@installer
.
install!
@installer
.
install!
names
=
@installer
.
target
.
native_target
.
source_build_phase
.
files
.
map
{
|
bf
|
bf
.
file_ref
.
display_name
}
names
=
@installer
.
target
.
native_target
.
source_build_phase
.
files
.
map
{
|
bf
|
bf
.
file_ref
.
display_name
}
...
...
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