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
b5191183
Commit
b5191183
authored
Dec 24, 2014
by
Boris Bügling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Unit test for resource bundle target depedencies.
parent
4b10d445
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
+17
-0
installer_spec.rb
spec/unit/installer_spec.rb
+17
-0
No files found.
spec/unit/installer_spec.rb
View file @
b5191183
...
@@ -409,6 +409,23 @@ module Pod
...
@@ -409,6 +409,23 @@ module Pod
describe
'#set_target_dependencies'
do
describe
'#set_target_dependencies'
do
it
'sets resource bundles for not build pods as target dependencies of the user target'
do
spec
=
fixture_spec
(
'banana-lib/BananaLib.podspec'
)
target_definition
=
Podfile
::
TargetDefinition
.
new
(
:default
,
@installer
.
podfile
)
pod_target
=
PodTarget
.
new
([
spec
],
target_definition
,
config
.
sandbox
)
pod_target
.
stubs
(
:resource_bundle_targets
).
returns
([
'dummy'
])
pod_target
.
stubs
(
:should_build?
=>
false
)
target
=
AggregateTarget
.
new
(
target_definition
,
config
.
sandbox
)
mock_target
=
mock
mock_target
.
expects
(
:add_dependency
).
with
(
'dummy'
)
target
.
stubs
(
:native_target
).
returns
(
mock_target
)
target
.
stubs
(
:pod_targets
).
returns
([
pod_target
])
@installer
.
stubs
(
:aggregate_targets
).
returns
([
target
])
@installer
.
send
(
:set_target_dependencies
)
end
xit
'sets the pod targets as dependencies of the aggregate target'
do
xit
'sets the pod targets as dependencies of the aggregate target'
do
end
end
...
...
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