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
36690939
Commit
36690939
authored
Sep 12, 2014
by
Samuel E. Giddins
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[RuboCop] Silence rubocop in the unit tests
parent
45d7bb3a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
7 deletions
+5
-7
path_list_spec.rb
spec/unit/sandbox/path_list_spec.rb
+2
-2
error_report_spec.rb
spec/unit/user_interface/error_report_spec.rb
+3
-5
No files found.
spec/unit/sandbox/path_list_spec.rb
View file @
36690939
...
@@ -64,12 +64,12 @@ module Pod
...
@@ -64,12 +64,12 @@ module Pod
it
'can return the absolute paths from glob'
do
it
'can return the absolute paths from glob'
do
paths
=
@path_list
.
glob
(
'Classes/*.{h,m}'
)
paths
=
@path_list
.
glob
(
'Classes/*.{h,m}'
)
paths
.
all?
{
|
p
|
p
.
absolute?
}
.
should
==
true
paths
.
all?
(
&
:absolute?
)
.
should
==
true
end
end
it
'can return the relative paths from glob'
do
it
'can return the relative paths from glob'
do
paths
=
@path_list
.
relative_glob
(
'Classes/*.{h,m}'
)
paths
=
@path_list
.
relative_glob
(
'Classes/*.{h,m}'
)
paths
.
any?
{
|
p
|
p
.
absolute?
}
.
should
==
false
paths
.
any?
(
&
:absolute?
)
.
should
==
false
end
end
it
'supports the `**` glob pattern'
do
it
'supports the `**` glob pattern'
do
...
...
spec/unit/user_interface/error_report_spec.rb
View file @
36690939
...
@@ -86,11 +86,9 @@ EOS
...
@@ -86,11 +86,9 @@ EOS
@report
.
stubs
(
:host_information
).
returns
(
':host_information'
)
@report
.
stubs
(
:host_information
).
returns
(
':host_information'
)
@report
.
stubs
(
:xcode_information
).
returns
(
':xcode_information'
)
@report
.
stubs
(
:xcode_information
).
returns
(
':xcode_information'
)
@report
.
stubs
(
:repo_information
).
returns
(
%w(repo_1 repo_2)
)
@report
.
stubs
(
:repo_information
).
returns
(
%w(repo_1 repo_2)
)
@report
.
stubs
(
:installed_plugins
).
returns
({
@report
.
stubs
(
:installed_plugins
).
returns
(
'cocoapods'
=>
Pod
::
VERSION
,
'cocoapods'
=>
Pod
::
VERSION
,
'cocoapods-core'
=>
Pod
::
VERSION
,
'cocoapods-core'
=>
Pod
::
VERSION
,
'cocoapods-plugins'
=>
'1.2.3'
)
'cocoapods-plugins'
=>
'1.2.3'
})
report
=
remove_color
(
@report
.
report
(
@exception
))
report
=
remove_color
(
@report
.
report
(
@exception
))
report
.
should
==
expected
report
.
should
==
expected
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