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
569c4ff8
Commit
569c4ff8
authored
Mar 29, 2015
by
Diego Torres
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Test] Unique resources in AggregateTargetInstaller
parent
eefb1d21
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
aggregate_target_installer_spec.rb
...aller/target_installer/aggregate_target_installer_spec.rb
+15
-0
No files found.
spec/unit/installer/target_installer/aggregate_target_installer_spec.rb
View file @
569c4ff8
...
...
@@ -164,6 +164,21 @@ module Pod
script
.
read
.
should
.
include?
(
'BananaLib.framework'
)
end
it
'uniques resources by config'
do
a_path
=
Pathname
.
new
(
@project
.
path
.
dirname
+
"/duplicated/path.jpg"
)
duplicated_paths
=
[
a_path
,
a_path
]
@installer
.
target
.
pod_targets
.
each
do
|
pod_target
|
pod_target
.
file_accessors
.
each
do
|
accessor
|
accessor
.
stubs
(
:resources
=>
duplicated_paths
)
end
end
resources_by_config
=
@installer
.
send
(
:resources_by_config
)
resources_by_config
.
each_value
do
|
resources
|
resources
.
length
.
should
==
1
resources
[
0
].
basename
.
should
==
a_path
.
basename
end
end
it
'does not add pods to the embed frameworks script if they are not to be built'
do
@pod_target
.
stubs
(
:should_build?
=>
false
)
@pod_target
.
stubs
(
:requires_frameworks?
=>
true
)
...
...
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