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
f4862b82
Commit
f4862b82
authored
Apr 10, 2013
by
Fabio Pelosin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Specs] Fix search related specs
parent
015670b6
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
sources_manager.rb
lib/cocoapods/sources_manager.rb
+4
-0
search_spec.rb
spec/functional/command/search_spec.rb
+1
-0
sources_manager_spec.rb
spec/unit/sources_manager_spec.rb
+2
-2
No files found.
lib/cocoapods/sources_manager.rb
View file @
f4862b82
...
...
@@ -113,6 +113,10 @@ module Pod
@updated_search_index
end
# Allows to clear the search index.
#
attr_writer
:updated_search_index
# @return [Pathname] The path where the search index should be stored.
#
def
search_index_path
...
...
spec/functional/command/search_spec.rb
View file @
f4862b82
...
...
@@ -8,6 +8,7 @@ module Pod
before
do
@test_source
=
Source
.
new
(
fixture
(
'spec-repos/test_repo'
))
Source
::
Aggregate
.
any_instance
.
stubs
(
:all
).
returns
([
@test_source
])
SourcesManager
.
updated_search_index
=
nil
end
it
"runs with correct parameters"
do
...
...
spec/unit/sources_manager_spec.rb
View file @
f4862b82
...
...
@@ -54,7 +54,7 @@ module Pod
Source
::
Aggregate
.
any_instance
.
stubs
(
:all
).
returns
([
@test_source
])
Source
::
Aggregate
.
any_instance
.
expects
(
:generate_search_index
).
returns
({
'BananaLib'
=>
{}})
Source
::
Aggregate
.
any_instance
.
expects
(
:update_search_index
).
never
SourcesManager
.
instance_variable_set
(
"@updated_search_index"
,
nil
)
SourcesManager
.
updated_search_index
=
nil
sets
=
SourcesManager
.
search_by_name
(
'BananaLib'
,
true
)
end
...
...
@@ -63,7 +63,7 @@ module Pod
Source
::
Aggregate
.
any_instance
.
stubs
(
:all
).
returns
([
@test_source
])
Source
::
Aggregate
.
any_instance
.
expects
(
:generate_search_index
).
never
Source
::
Aggregate
.
any_instance
.
expects
(
:update_search_index
).
returns
({
'BananaLib'
=>
{}})
SourcesManager
.
instance_variable_set
(
"@updated_search_index"
,
nil
)
SourcesManager
.
updated_search_index
=
nil
sets
=
SourcesManager
.
search_by_name
(
'BananaLib'
,
true
)
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