lib/chewy/minitest/helpers.rb
Method mock_elasticsearch_response_sources
has 27 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def mock_elasticsearch_response_sources(index, hits, &block)
raw_response = {
'took' => 4,
'timed_out' => false,
'_shards' => {