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
2f6f2e32
Commit
2f6f2e32
authored
Oct 27, 2015
by
Muhammed Yavuz Nuzumlali
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Stub background job of updating search index in tests
parent
6474bfbd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
update_spec.rb
spec/functional/command/repo/update_spec.rb
+7
-0
No files found.
spec/functional/command/repo/update_spec.rb
View file @
2f6f2e32
...
...
@@ -19,6 +19,7 @@ module Pod
`git fetch -q`
`git branch --set-upstream-to=origin/master master`
end
SourcesManager
.
expects
(
:update_search_index_if_needed_in_background
).
with
({}).
returns
(
nil
)
lambda
{
command
(
'repo'
,
'update'
).
run
}.
should
.
not
.
raise
end
...
...
@@ -27,6 +28,12 @@ module Pod
repo2
=
repo_clone
(
'repo1'
,
'repo2'
)
repo_make_readme_change
(
repo1
,
'Updated'
)
Dir
.
chdir
(
repo1
)
{
`git commit -a -m "Update"`
}
SourcesManager
.
expects
(
:update_search_index_if_needed_in_background
).
with
()
{
|
value
|
value
.
each_pair
{
|
source
,
paths
|
source
.
name
.
should
==
'repo2'
paths
.
should
==
[
'README'
]
}
}
run_command
(
'repo'
,
'update'
,
'repo2'
)
(
repo2
+
'README'
).
read
.
should
.
include
'Updated'
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