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
d150ac74
Commit
d150ac74
authored
Dec 24, 2014
by
Boris Bügling
Committed by
Marius Rackwitz
Dec 25, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Spec] stubbed platform was of wrong type.
parent
e1aace40
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
spec_helper.rb
spec/spec_helper.rb
+2
-1
No files found.
spec/spec_helper.rb
View file @
d150ac74
...
@@ -139,7 +139,8 @@ def fixture_aggregate_target(pod_targets = [], platform = :ios, target_definitio
...
@@ -139,7 +139,8 @@ def fixture_aggregate_target(pod_targets = [], platform = :ios, target_definitio
target_definition
||=
pod_targets
.
map
(
&
:target_definition
).
first
||
fixture_target_definition
target_definition
||=
pod_targets
.
map
(
&
:target_definition
).
first
||
fixture_target_definition
target
=
Pod
::
AggregateTarget
.
new
(
target_definition
,
config
.
sandbox
)
target
=
Pod
::
AggregateTarget
.
new
(
target_definition
,
config
.
sandbox
)
target
.
client_root
=
config
.
sandbox
.
root
.
dirname
target
.
client_root
=
config
.
sandbox
.
root
.
dirname
target
.
stubs
(
:platform
).
returns
(
platform
)
version
||=
(
platform
==
:ios
?
'4.3'
:
'10.6'
)
target
.
stubs
(
:platform
).
returns
(
Pod
::
Platform
.
new
(
platform
,
version
))
target
.
pod_targets
=
pod_targets
target
.
pod_targets
=
pod_targets
target
target
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