Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
3f3cb349
Commit
3f3cb349
authored
Jun 07, 2017
by
Valery Sizov
Committed by
Sean McGivern
Jun 07, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add update guide 9.2-9.3
parent
ab6b7025
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
spec/lib/gitlab/elastic/search_results_spec.rb
spec/lib/gitlab/elastic/search_results_spec.rb
+4
-4
No files found.
spec/lib/gitlab/elastic/search_results_spec.rb
View file @
3f3cb349
...
...
@@ -378,7 +378,7 @@ describe Gitlab::Elastic::SearchResults, lib: true do
results
=
described_class
.
new
(
user
,
'def'
,
limit_project_ids
)
blobs
=
results
.
objects
(
'blobs'
)
expect
(
blobs
.
first
[
"_source"
][
"blob"
][
"content"
]).
to
include
(
"def"
)
expect
(
blobs
.
first
[
'_source'
][
'blob'
][
'content'
]).
to
include
(
'def'
)
expect
(
results
.
blobs_count
).
to
eq
5
end
...
...
@@ -418,7 +418,7 @@ describe Gitlab::Elastic::SearchResults, lib: true do
blobs
=
described_class
.
new
(
user
,
term
,
[
project_1
.
id
]).
objects
(
'blobs'
)
blobs
.
map
do
|
blob
|
blob
[
"_source"
][
"blob"
][
"path"
]
blob
[
'_source'
][
'blob'
][
'path'
]
end
end
...
...
@@ -454,7 +454,7 @@ describe Gitlab::Elastic::SearchResults, lib: true do
it
'finds wiki blobs'
do
blobs
=
results
.
objects
(
'wiki_blobs'
)
expect
(
blobs
.
first
[
"_source"
][
"blob"
][
"content"
]).
to
include
(
"term"
)
expect
(
blobs
.
first
[
'_source'
][
'blob'
][
'content'
]).
to
include
(
"term"
)
expect
(
results
.
wiki_blobs_count
).
to
eq
1
end
...
...
@@ -462,7 +462,7 @@ describe Gitlab::Elastic::SearchResults, lib: true do
project_1
.
add_guest
(
user
)
blobs
=
results
.
objects
(
'wiki_blobs'
)
expect
(
blobs
.
first
[
"_source"
][
"blob"
][
"content"
]).
to
include
(
"term"
)
expect
(
blobs
.
first
[
'_source'
][
'blob'
][
'content'
]).
to
include
(
"term"
)
expect
(
results
.
wiki_blobs_count
).
to
eq
1
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