Method: Elastictastic::TestHelpers#stub_es_bulk

Defined in:
lib/elastictastic/test_helpers.rb

#stub_es_bulk(*responses) ⇒ Object



98
99
100
101
102
103
104
# File 'lib/elastictastic/test_helpers.rb', line 98

def stub_es_bulk(*responses)
  stub_request_json(
    :post,
    match_es_path('/_bulk'),
    'took' => 1, 'items' => responses
  )
end