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
e2e08e2a
Commit
e2e08e2a
authored
Dec 25, 2015
by
Samuel Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Installer] Fix specs for uniqing the list of vendored frameworks
parent
b2816f10
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
1 deletion
+23
-1
installer_spec.rb
spec/unit/installer_spec.rb
+23
-1
No files found.
spec/unit/installer_spec.rb
View file @
e2e08e2a
...
...
@@ -250,7 +250,10 @@ module Pod
describe
'#verify_no_duplicate_framework_names'
do
it
'detects duplicate framework names'
do
Sandbox
::
FileAccessor
.
any_instance
.
stubs
(
:vendored_frameworks
).
returns
([
Pathname
(
'monkey.framework'
)])
Sandbox
::
FileAccessor
.
any_instance
.
stubs
(
:vendored_frameworks
).
returns
([
Pathname
(
'a/monkey.framework'
)]).
then
.
returns
([
Pathname
(
'b/monkey.framework'
)]).
then
.
returns
([
Pathname
(
'c/monkey.framework'
)])
fixture_path
=
ROOT
+
'spec/fixtures'
config
.
repos_dir
=
fixture_path
+
'spec-repos'
podfile
=
Pod
::
Podfile
.
new
do
...
...
@@ -266,6 +269,25 @@ module Pod
@installer
=
Installer
.
new
(
config
.
sandbox
,
podfile
,
lockfile
)
should
.
raise
(
Informative
)
{
@installer
.
install!
}.
message
.
should
.
match
/conflict.*monkey/
end
it
'allows duplicate references to the same expanded framework path'
do
Sandbox
::
FileAccessor
.
any_instance
.
stubs
(
:vendored_frameworks
).
returns
([
fixture
(
'monkey/dynamic-monkey.framework'
)])
Sandbox
::
FileAccessor
.
any_instance
.
stubs
(
:dynamic_binary?
).
returns
(
true
)
fixture_path
=
ROOT
+
'spec/fixtures'
config
.
repos_dir
=
fixture_path
+
'spec-repos'
podfile
=
Pod
::
Podfile
.
new
do
platform
:ios
,
'8.0'
xcodeproj
'SampleProject/SampleProject'
use_frameworks!
pod
'BananaLib'
,
:path
=>
(
fixture_path
+
'banana-lib'
).
to_s
pod
'monkey'
,
:path
=>
(
fixture_path
+
'monkey'
).
to_s
end
lockfile
=
generate_lockfile
config
.
integrate_targets
=
false
@installer
=
Installer
.
new
(
config
.
sandbox
,
podfile
,
lockfile
)
should
.
not
.
raise
(
Informative
)
{
@installer
.
install!
}
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