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
debde386
Commit
debde386
authored
Jul 11, 2015
by
Orta
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3808 from amorde/amorde-fix-specs-locations
[Specs] Fixed plugin specs in the incorrect files
parents
8b7690f7
c72e180d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
29 deletions
+29
-29
post_install_hooks_context_spec.rb
spec/unit/installer/post_install_hooks_context_spec.rb
+22
-7
pre_install_hooks_context_spec.rb
spec/unit/installer/pre_install_hooks_context_spec.rb
+7
-22
No files found.
spec/unit/installer/post_install_hooks_context_spec.rb
View file @
debde386
require
File
.
expand_path
(
'../../../spec_helper'
,
__FILE__
)
module
Pod
describe
Installer
::
P
re
InstallHooksContext
do
describe
Installer
::
P
ost
InstallHooksContext
do
it
'offers a convenience method to be generated'
do
sandbox
,
podfile
,
lockfile
=
stub
,
stub
,
stub
sandbox
=
stub
(
:root
=>
'/path'
)
result
=
Installer
::
PreInstallHooksContext
.
generate
(
sandbox
,
podfile
,
lockfile
)
result
.
class
.
should
==
Installer
::
PreInstallHooksContext
result
.
sandbox
.
should
==
sandbox
result
.
podfile
.
should
==
podfile
result
.
lockfile
.
should
==
lockfile
spec
=
fixture_spec
(
'banana-lib/BananaLib.podspec'
)
target_definition
=
Podfile
::
TargetDefinition
.
new
(
'Pods'
,
nil
)
pod_target
=
PodTarget
.
new
([
spec
],
[
target_definition
],
config
.
sandbox
)
umbrella
=
AggregateTarget
.
new
(
target_definition
,
config
.
sandbox
)
umbrella
.
user_project_path
=
'/path/project.xcodeproj'
umbrella
.
user_target_uuids
=
[
'UUID'
]
umbrella
.
stubs
(
:platform
).
returns
(
Platform
.
new
(
:ios
,
'8.0'
))
umbrella
.
pod_targets
=
[
pod_target
]
result
=
Installer
::
PostInstallHooksContext
.
generate
(
sandbox
,
[
umbrella
])
result
.
class
.
should
==
Installer
::
PostInstallHooksContext
result
.
sandbox_root
.
should
==
'/path'
result
.
umbrella_targets
.
count
.
should
==
1
umbrella_target
=
result
.
umbrella_targets
.
first
umbrella_target
.
user_target_uuids
.
should
==
[
'UUID'
]
umbrella_target
.
user_project_path
.
should
==
'/path/project.xcodeproj'
umbrella_target
.
specs
.
should
==
[
spec
]
umbrella_target
.
platform_name
.
should
==
:ios
umbrella_target
.
platform_deployment_target
.
should
==
'8.0'
umbrella_target
.
cocoapods_target_label
.
should
==
'Pods'
end
end
end
spec/unit/installer/pre_install_hooks_context_spec.rb
View file @
debde386
...
...
@@ -2,30 +2,15 @@
require
File
.
expand_path
(
'../../../spec_helper'
,
__FILE__
)
module
Pod
describe
Installer
::
P
ost
InstallHooksContext
do
describe
Installer
::
P
re
InstallHooksContext
do
it
'offers a convenience method to be generated'
do
sandbox
=
stub
(
:root
=>
'/path'
)
sandbox
,
podfile
,
lockfile
=
stub
,
stub
,
stub
spec
=
fixture_spec
(
'banana-lib/BananaLib.podspec'
)
target_definition
=
Podfile
::
TargetDefinition
.
new
(
'Pods'
,
nil
)
pod_target
=
PodTarget
.
new
([
spec
],
[
target_definition
],
config
.
sandbox
)
umbrella
=
AggregateTarget
.
new
(
target_definition
,
config
.
sandbox
)
umbrella
.
user_project_path
=
'/path/project.xcodeproj'
umbrella
.
user_target_uuids
=
[
'UUID'
]
umbrella
.
stubs
(
:platform
).
returns
(
Platform
.
new
(
:ios
,
'8.0'
))
umbrella
.
pod_targets
=
[
pod_target
]
result
=
Installer
::
PostInstallHooksContext
.
generate
(
sandbox
,
[
umbrella
])
result
.
class
.
should
==
Installer
::
PostInstallHooksContext
result
.
sandbox_root
.
should
==
'/path'
result
.
umbrella_targets
.
count
.
should
==
1
umbrella_target
=
result
.
umbrella_targets
.
first
umbrella_target
.
user_target_uuids
.
should
==
[
'UUID'
]
umbrella_target
.
user_project_path
.
should
==
'/path/project.xcodeproj'
umbrella_target
.
specs
.
should
==
[
spec
]
umbrella_target
.
platform_name
.
should
==
:ios
umbrella_target
.
platform_deployment_target
.
should
==
'8.0'
umbrella_target
.
cocoapods_target_label
.
should
==
'Pods'
result
=
Installer
::
PreInstallHooksContext
.
generate
(
sandbox
,
podfile
,
lockfile
)
result
.
class
.
should
==
Installer
::
PreInstallHooksContext
result
.
sandbox
.
should
==
sandbox
result
.
podfile
.
should
==
podfile
result
.
lockfile
.
should
==
lockfile
end
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