Use items_in_index in method from helper

We have items_in_index method in ee/spec/support/helpers/elasticsearch_helpers.rb use that method in all specs instead of the same implementation at all places. Few specs where we can work are:

  • ee/spec/workers/search/elastic_group_association_deletion_worker_spec.rb
  • ee/spec/elastic_integration/epic_index_spec.rb
  • ee/spec/elastic_integration/work_item_index_spec.rb
Edited by Siddharth Dungarwal