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
8c020fec
Commit
8c020fec
authored
Nov 15, 2015
by
Boris Bügling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix rubocop findings
parent
2d8f912c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
installer_spec.rb
spec/unit/installer_spec.rb
+5
-5
project_spec.rb
spec/unit/project_spec.rb
+1
-1
No files found.
spec/unit/installer_spec.rb
View file @
8c020fec
...
@@ -256,26 +256,26 @@ module Pod
...
@@ -256,26 +256,26 @@ module Pod
@file
=
Pathname
(
'/yolo.m'
)
@file
=
Pathname
(
'/yolo.m'
)
@file
.
stubs
(
:realpath
).
returns
(
@file
)
@file
.
stubs
(
:realpath
).
returns
(
@file
)
@lib
T
hing
=
Pathname
(
'/libThing.a'
)
@lib
_t
hing
=
Pathname
(
'/libThing.a'
)
@lib
Thing
.
stubs
(
:realpath
).
returns
(
@libT
hing
)
@lib
_thing
.
stubs
(
:realpath
).
returns
(
@lib_t
hing
)
end
end
it
'detects transitive static dependencies which are linked directly to the user target'
do
it
'detects transitive static dependencies which are linked directly to the user target'
do
Sandbox
::
FileAccessor
.
any_instance
.
stubs
(
:vendored_libraries
).
returns
([
@lib
T
hing
])
Sandbox
::
FileAccessor
.
any_instance
.
stubs
(
:vendored_libraries
).
returns
([
@lib
_t
hing
])
@installer
=
Installer
.
new
(
config
.
sandbox
,
@podfile
,
@lockfile
)
@installer
=
Installer
.
new
(
config
.
sandbox
,
@podfile
,
@lockfile
)
should
.
raise
(
Informative
)
{
@installer
.
install!
}.
message
.
should
.
match
/transitive.*libThing/
should
.
raise
(
Informative
)
{
@installer
.
install!
}.
message
.
should
.
match
/transitive.*libThing/
end
end
it
'allows transitive static dependencies which contain other source code'
do
it
'allows transitive static dependencies which contain other source code'
do
Sandbox
::
FileAccessor
.
any_instance
.
stubs
(
:source_files
).
returns
([
@file
])
Sandbox
::
FileAccessor
.
any_instance
.
stubs
(
:source_files
).
returns
([
@file
])
Sandbox
::
FileAccessor
.
any_instance
.
stubs
(
:vendored_libraries
).
returns
([
@lib
T
hing
])
Sandbox
::
FileAccessor
.
any_instance
.
stubs
(
:vendored_libraries
).
returns
([
@lib
_t
hing
])
@installer
=
Installer
.
new
(
config
.
sandbox
,
@podfile
,
@lockfile
)
@installer
=
Installer
.
new
(
config
.
sandbox
,
@podfile
,
@lockfile
)
should
.
not
.
raise
(
Informative
)
{
@installer
.
install!
}
should
.
not
.
raise
(
Informative
)
{
@installer
.
install!
}
end
end
it
'allows transitive static dependencies when both dependencies are linked against the user target'
do
it
'allows transitive static dependencies when both dependencies are linked against the user target'
do
PodTarget
.
any_instance
.
stubs
(
:should_build?
=>
false
)
PodTarget
.
any_instance
.
stubs
(
:should_build?
=>
false
)
Sandbox
::
FileAccessor
.
any_instance
.
stubs
(
:vendored_libraries
).
returns
([
@lib
T
hing
])
Sandbox
::
FileAccessor
.
any_instance
.
stubs
(
:vendored_libraries
).
returns
([
@lib
_t
hing
])
@installer
=
Installer
.
new
(
config
.
sandbox
,
@podfile
,
@lockfile
)
@installer
=
Installer
.
new
(
config
.
sandbox
,
@podfile
,
@lockfile
)
should
.
not
.
raise
(
Informative
)
{
@installer
.
install!
}
should
.
not
.
raise
(
Informative
)
{
@installer
.
install!
}
end
end
...
...
spec/unit/project_spec.rb
View file @
8c020fec
...
@@ -228,7 +228,7 @@ module Pod
...
@@ -228,7 +228,7 @@ module Pod
it
'uses realpath for resolving symlinks'
do
it
'uses realpath for resolving symlinks'
do
file
=
Pathname
.
new
(
Dir
.
tmpdir
)
+
'file.m'
file
=
Pathname
.
new
(
Dir
.
tmpdir
)
+
'file.m'
FileUtils
.
rm_f
(
file
)
FileUtils
.
rm_f
(
file
)
File
.
open
(
file
,
'w'
)
{
|
f
ile
|
file
.
write
(
''
)
}
File
.
open
(
file
,
'w'
)
{
|
f
|
f
.
write
(
''
)
}
sym_file
=
Pathname
.
new
(
Dir
.
tmpdir
)
+
'symlinked_file.m'
sym_file
=
Pathname
.
new
(
Dir
.
tmpdir
)
+
'symlinked_file.m'
FileUtils
.
rm_f
(
sym_file
)
FileUtils
.
rm_f
(
sym_file
)
File
.
symlink
(
file
,
sym_file
)
File
.
symlink
(
file
,
sym_file
)
...
...
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