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
b429564d
Commit
b429564d
authored
Sep 01, 2015
by
Samuel E. Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Analyzer] Add specs for the dependent target generation
parent
d3ad68ce
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
0 deletions
+23
-0
analyzer_spec.rb
spec/unit/installer/analyzer_spec.rb
+23
-0
No files found.
spec/unit/installer/analyzer_spec.rb
View file @
b429564d
...
@@ -116,6 +116,29 @@ module Pod
...
@@ -116,6 +116,29 @@ module Pod
target
.
platform
.
to_s
.
should
==
'iOS 6.0'
target
.
platform
.
to_s
.
should
==
'iOS 6.0'
end
end
it
'generates the set of dependent pod targets'
do
@podfile
=
Pod
::
Podfile
.
new
do
platform
:ios
,
'8.0'
xcodeproj
'SampleProject/SampleProject'
pod
'RestKit'
,
'~> 0.23.0'
target
'TestRunner'
do
pod
'RestKit/Testing'
,
'~> 0.23.0'
end
end
@analyzer
=
Pod
::
Installer
::
Analyzer
.
new
(
config
.
sandbox
,
@podfile
,
nil
)
target
=
@analyzer
.
analyze
.
targets
.
first
restkit_target
=
target
.
pod_targets
.
find
{
|
pt
|
pt
.
pod_name
==
'RestKit'
}
restkit_target
.
should
.
be
.
scoped
restkit_target
.
dependent_targets
.
map
(
&
:pod_name
).
sort
.
should
==
%w(
AFNetworking
ISO8601DateFormatterValueTransformer
RKValueTransformers
SOCKit
TransitionKit
)
restkit_target
.
dependent_targets
.
all?
(
&
:scoped
).
should
.
be
.
true
end
describe
'deduplication'
do
describe
'deduplication'
do
before
do
before
do
repos
=
[
fixture
(
'spec-repos/test_repo'
),
fixture
(
'spec-repos/master'
)]
repos
=
[
fixture
(
'spec-repos/test_repo'
),
fixture
(
'spec-repos/master'
)]
...
...
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