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
fc65b853
Commit
fc65b853
authored
Jun 09, 2015
by
Marius Rackwitz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Spec] Fix spec for PodTargetInstaller
parent
ef1a511e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
pod_target_installer_spec.rb
...t/installer/target_installer/pod_target_installer_spec.rb
+2
-3
No files found.
spec/unit/installer/target_installer/pod_target_installer_spec.rb
View file @
fc65b853
...
@@ -6,7 +6,7 @@ module Pod
...
@@ -6,7 +6,7 @@ module Pod
before
do
before
do
config
.
sandbox
.
prepare
config
.
sandbox
.
prepare
@podfile
=
Podfile
.
new
do
@podfile
=
Podfile
.
new
do
platform
:ios
platform
:ios
,
'6.0'
xcodeproj
'dummy'
xcodeproj
'dummy'
end
end
@target_definition
=
@podfile
.
target_definitions
[
'Pods'
]
@target_definition
=
@podfile
.
target_definitions
[
'Pods'
]
...
@@ -26,7 +26,6 @@ module Pod
...
@@ -26,7 +26,6 @@ module Pod
end
end
@pod_target
=
PodTarget
.
new
([
@spec
],
[
@target_definition
],
config
.
sandbox
)
@pod_target
=
PodTarget
.
new
([
@spec
],
[
@target_definition
],
config
.
sandbox
)
@pod_target
.
stubs
(
:platform
).
returns
(
Platform
.
new
(
:ios
,
'6.0'
))
@pod_target
.
file_accessors
=
[
file_accessor
]
@pod_target
.
file_accessors
=
[
file_accessor
]
@pod_target
.
user_build_configurations
=
{
'Debug'
=>
:debug
,
'Release'
=>
:release
}
@pod_target
.
user_build_configurations
=
{
'Debug'
=>
:debug
,
'Release'
=>
:release
}
@installer
=
Installer
::
PodTargetInstaller
.
new
(
config
.
sandbox
,
@pod_target
)
@installer
=
Installer
::
PodTargetInstaller
.
new
(
config
.
sandbox
,
@pod_target
)
...
@@ -94,11 +93,11 @@ module Pod
...
@@ -94,11 +93,11 @@ module Pod
describe
'with a scoped pod target'
do
describe
'with a scoped pod target'
do
before
do
before
do
@pod_target
=
@pod_target
.
scoped
.
first
@pod_target
=
@pod_target
.
scoped
.
first
@installer
=
Installer
::
PodTargetInstaller
.
new
(
config
.
sandbox
,
@pod_target
)
end
end
it
'adds file references for the support files of the target'
do
it
'adds file references for the support files of the target'
do
@installer
.
install!
@installer
.
install!
@project
.
support_files_group
group
=
@project
[
'Pods/BananaLib/Support Files'
]
group
=
@project
[
'Pods/BananaLib/Support Files'
]
group
.
children
.
map
(
&
:display_name
).
sort
.
should
==
[
group
.
children
.
map
(
&
:display_name
).
sort
.
should
==
[
'Pods-BananaLib-Private.xcconfig'
,
'Pods-BananaLib-Private.xcconfig'
,
...
...
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