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
6f80e151
Commit
6f80e151
authored
Aug 15, 2016
by
Ruben Davila
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into 8-11-stable-ee
parents
5b82c740
cf1076a5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
+8
-6
spec/models/concerns/elastic/merge_request_spec.rb
spec/models/concerns/elastic/merge_request_spec.rb
+8
-6
No files found.
spec/models/concerns/elastic/merge_request_spec.rb
View file @
6f80e151
...
...
@@ -14,14 +14,16 @@ describe MergeRequest, elastic: true do
it
"searches merge requests"
do
project
=
create
:project
create
:merge_request
,
title:
'bla-bla term'
,
source_project:
project
create
:merge_request
,
description:
'term in description'
,
source_project:
project
,
target_branch:
"feature2"
create
:merge_request
,
source_project:
project
,
target_branch:
"feature3"
Sidekiq
::
Testing
.
inline!
do
create
:merge_request
,
title:
'bla-bla term'
,
source_project:
project
create
:merge_request
,
description:
'term in description'
,
source_project:
project
,
target_branch:
"feature2"
create
:merge_request
,
source_project:
project
,
target_branch:
"feature3"
# The merge request you have no access to
create
:merge_request
,
title:
'also with term'
# The merge request you have no access to
create
:merge_request
,
title:
'also with term'
Gitlab
::
Elastic
::
Helper
.
refresh_index
Gitlab
::
Elastic
::
Helper
.
refresh_index
end
options
=
{
project_ids:
[
project
.
id
]
}
...
...
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