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
739c42df
Commit
739c42df
authored
Nov 07, 2013
by
Per Eckerdal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test that we do not add linked projects twice
parent
1ab7a6ff
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
1 deletion
+13
-1
linked_dependencies_installer_spec.rb
spec/unit/installer/linked_dependencies_installer_spec.rb
+13
-1
No files found.
spec/unit/installer/linked_dependencies_installer_spec.rb
View file @
739c42df
...
@@ -57,7 +57,6 @@ module Pod
...
@@ -57,7 +57,6 @@ module Pod
@pod_target
.
target
.
frameworks_build_phase
.
files_references
.
map
(
&
:path
).
should
.
include
(
'libSample Lib.a'
)
@pod_target
.
target
.
frameworks_build_phase
.
files_references
.
map
(
&
:path
).
should
.
include
(
'libSample Lib.a'
)
end
end
it
"adds linked projects"
do
it
"adds linked projects"
do
path
=
SpecHelper
::
Fixture
.
fixture
(
'SampleProject/Sample Lib/Sample Lib.xcodeproj'
)
path
=
SpecHelper
::
Fixture
.
fixture
(
'SampleProject/Sample Lib/Sample Lib.xcodeproj'
)
@installer
.
stubs
(
:linked_project_specs
).
returns
({
@installer
.
stubs
(
:linked_project_specs
).
returns
({
...
@@ -68,6 +67,19 @@ module Pod
...
@@ -68,6 +67,19 @@ module Pod
@project
.
reference_for_path
(
path
).
isa
.
should
.
be
==
'PBXFileReference'
@project
.
reference_for_path
(
path
).
isa
.
should
.
be
==
'PBXFileReference'
end
end
it
"does not add linked projects twice"
do
path
=
SpecHelper
::
Fixture
.
fixture
(
'SampleProject/Sample Lib/Sample Lib.xcodeproj'
)
@installer
.
stubs
(
:linked_project_specs
).
returns
({
path
=>
[
@file_accessor
.
spec
]
})
@installer
.
send
(
:add_linked_projects
)
@installer
.
send
(
:add_linked_projects
)
@project
.
objects
.
find_all
do
|
child
|
child
.
isa
==
'PBXFileReference'
&&
child
.
real_path
==
path
end
.
length
.
should
.
be
==
1
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