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
9fe18b4a
Commit
9fe18b4a
authored
Oct 02, 2020
by
Terri Chu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Ruby 2.7 warnings for elastic_delete_project_worker_spec.rb
parent
5497fa47
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
ee/spec/workers/elastic_delete_project_worker_spec.rb
ee/spec/workers/elastic_delete_project_worker_spec.rb
+10
-10
No files found.
ee/spec/workers/elastic_delete_project_worker_spec.rb
View file @
9fe18b4a
...
...
@@ -24,19 +24,19 @@ RSpec.describe ElasticDeleteProjectWorker, :elastic do
ensure_elasticsearch_index!
## All database objects + data from repository. The absolute value does not matter
expect
(
Project
.
elastic_search
(
'*'
,
search_options
).
records
).
to
include
(
project
)
expect
(
Issue
.
elastic_search
(
'*'
,
search_options
).
records
).
to
include
(
issue
)
expect
(
Milestone
.
elastic_search
(
'*'
,
search_options
).
records
).
to
include
(
milestone
)
expect
(
Note
.
elastic_search
(
'*'
,
search_options
).
records
).
to
include
(
note
)
expect
(
MergeRequest
.
elastic_search
(
'*'
,
search_options
).
records
).
to
include
(
merge_request
)
expect
(
Project
.
elastic_search
(
'*'
,
**
search_options
).
records
).
to
include
(
project
)
expect
(
Issue
.
elastic_search
(
'*'
,
**
search_options
).
records
).
to
include
(
issue
)
expect
(
Milestone
.
elastic_search
(
'*'
,
**
search_options
).
records
).
to
include
(
milestone
)
expect
(
Note
.
elastic_search
(
'*'
,
**
search_options
).
records
).
to
include
(
note
)
expect
(
MergeRequest
.
elastic_search
(
'*'
,
**
search_options
).
records
).
to
include
(
merge_request
)
subject
.
perform
(
project
.
id
,
project
.
es_id
)
ensure_elasticsearch_index!
expect
(
Project
.
elastic_search
(
'*'
,
search_options
).
total_count
).
to
be
(
0
)
expect
(
Issue
.
elastic_search
(
'*'
,
search_options
).
total_count
).
to
be
(
0
)
expect
(
Milestone
.
elastic_search
(
'*'
,
search_options
).
total_count
).
to
be
(
0
)
expect
(
Note
.
elastic_search
(
'*'
,
search_options
).
total_count
).
to
be
(
0
)
expect
(
MergeRequest
.
elastic_search
(
'*'
,
search_options
).
total_count
).
to
be
(
0
)
expect
(
Project
.
elastic_search
(
'*'
,
**
search_options
).
total_count
).
to
be
(
0
)
expect
(
Issue
.
elastic_search
(
'*'
,
**
search_options
).
total_count
).
to
be
(
0
)
expect
(
Milestone
.
elastic_search
(
'*'
,
**
search_options
).
total_count
).
to
be
(
0
)
expect
(
Note
.
elastic_search
(
'*'
,
**
search_options
).
total_count
).
to
be
(
0
)
expect
(
MergeRequest
.
elastic_search
(
'*'
,
**
search_options
).
total_count
).
to
be
(
0
)
end
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