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
6fac8d05
Commit
6fac8d05
authored
Mar 01, 2013
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Specs] Fix resolver test
parent
6159183f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
30 deletions
+4
-30
master
spec/fixtures/spec-repos/master
+1
-1
resolver_spec.rb
spec/unit/resolver_spec.rb
+3
-29
No files found.
master
@
e54bfaa5
Subproject commit
7f3cc9e12b0a459582d606baa7fc906006965f54
Subproject commit
e54bfaa54110629cbb7495a5cdbb237b1fffe8f8
spec/unit/resolver_spec.rb
View file @
6fac8d05
...
...
@@ -76,39 +76,13 @@ module Pod
it
"cross resolves dependencies"
do
@podfile
=
Podfile
.
new
do
platform
:ios
,
'6.0'
pod
'
BlocksKit'
,
'= 1.0'
pod
'
libffi'
,
'< 3
.0'
pod
'
AFNetworking'
,
'< 0.9.2'
# 0.9.1 exits
pod
'
AFQuickLookView'
,
'= 0.1.0'
# requires 'AFNetworking', '>= 0.9
.0'
end
dependant_1_0
=
Spec
.
new
do
|
s
|
s
.
name
=
'BlocksKit'
s
.
version
=
'1.0'
s
.
platform
=
:ios
s
.
dependency
'libffi'
,
'1.0'
end
depended_1_0
=
Spec
.
new
do
|
s
|
s
.
name
=
'libffi'
s
.
version
=
'1.0'
s
.
platform
=
:ios
end
depended_2_0
=
Spec
.
new
do
|
s
|
s
.
name
=
'libffi'
s
.
version
=
'2.0'
s
.
platform
=
:ios
end
Source
.
any_instance
.
stubs
(
:versions
).
with
(
'BlocksKit'
).
returns
([
Version
.
new
(
1.0
)])
Source
.
any_instance
.
stubs
(
:specification
).
with
(
'BlocksKit'
,
Version
.
new
(
'1.0'
)).
returns
(
dependant_1_0
)
Source
.
any_instance
.
stubs
(
:versions
).
with
(
'libffi'
).
returns
([
Version
.
new
(
1.0
),
Version
.
new
(
2.0
)])
Source
.
any_instance
.
stubs
(
:specification
).
with
(
'libffi'
,
Version
.
new
(
'1.0'
)).
returns
(
depended_1_0
)
Source
.
any_instance
.
stubs
(
:specification
).
with
(
'libffi'
,
Version
.
new
(
'2.0'
)).
returns
(
depended_2_0
)
resolver
=
Resolver
.
new
(
config
.
sandbox
,
@podfile
)
specs
=
resolver
.
resolve
.
values
.
flatten
.
map
(
&
:to_s
).
sort
specs
.
should
==
[
"
BlocksKit (1.0)"
,
"libffi (
1.0)"
]
specs
.
should
==
[
"
AFNetworking (0.9.1)"
,
"AFQuickLookView (0.
1.0)"
]
end
it
"holds the context state, such as cached specification sets"
do
...
...
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