Skip to content

Commit

Permalink
Fix in mock_elasticsearch_response_sources
Browse files Browse the repository at this point in the history
  • Loading branch information
lafeber committed Oct 19, 2022
1 parent 73b2fb1 commit ad8da4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/chewy/minitest/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def mock_elasticsearch_response_sources(index, hits, &block)
{
'_index' => index.index_name,
'_type' => '_doc',
'_id' => (i + 1).to_s,
'_id' => hit[:id] || (i + 1).to_s,
'_score' => 3.14,
'_source' => hit
}
Expand Down

0 comments on commit ad8da4c

Please sign in to comment.