Commit 66cb72b6 authored by charlie ablett's avatar charlie ablett

Merge branch 'tchu-fix-2.7-warnings-for-elastic_delete_project_worker_spec' into 'master'

Fix Ruby 2.7 warnings for elastic_delete_project_worker_spec.rb

See merge request gitlab-org/gitlab!44200
parents 67ac24fb 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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment