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
081957d1
Commit
081957d1
authored
Oct 12, 2016
by
Rémy Coutable
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix broken specs due to
ff076d88
Signed-off-by:
Rémy Coutable
<
remy@rymai.me
>
parent
13106d27
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 @
081957d1
...
...
@@ -379,7 +379,7 @@ describe Gitlab::Elastic::SearchResults, lib: true do
blobs
=
results
.
objects
(
'blobs'
)
expect
(
blobs
.
first
[
"_source"
][
"blob"
][
"content"
]).
to
include
(
"def"
)
expect
(
results
.
blobs_count
).
to
eq
4
expect
(
results
.
blobs_count
).
to
eq
5
end
it
'finds blobs from public projects only'
do
...
...
@@ -388,7 +388,7 @@ describe Gitlab::Elastic::SearchResults, lib: true do
Gitlab
::
Elastic
::
Helper
.
refresh_index
results
=
described_class
.
new
(
user
,
'def'
,
[
project_1
.
id
])
expect
(
results
.
blobs_count
).
to
eq
4
expect
(
results
.
blobs_count
).
to
eq
5
results
=
described_class
.
new
(
user
,
'def'
,
[
project_1
.
id
,
project_2
.
id
])
expect
(
results
.
blobs_count
).
to
eq
8
...
...
@@ -412,7 +412,7 @@ describe Gitlab::Elastic::SearchResults, lib: true do
results
=
described_class
.
new
(
user
,
'add'
,
limit_project_ids
)
commits
=
results
.
objects
(
'commits'
)
expect
(
commits
.
first
.
message
).
to
include
(
"
a
dd"
)
expect
(
commits
.
first
.
message
).
to
include
(
"
A
dd"
)
expect
(
results
.
commits_count
).
to
eq
5
end
...
...
@@ -422,7 +422,7 @@ describe Gitlab::Elastic::SearchResults, lib: true do
Gitlab
::
Elastic
::
Helper
.
refresh_index
results
=
described_class
.
new
(
user
,
'add'
,
[
project_1
.
id
])
expect
(
results
.
commits_count
).
to
eq
5
expect
(
results
.
commits_count
).
to
eq
24
results
=
described_class
.
new
(
user
,
'add'
,
[
project_1
.
id
,
project_2
.
id
])
expect
(
results
.
commits_count
).
to
eq
10
...
...
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