class MockBulkRequest

Collects request bodies coming through the perform method for the further analysis.

Attributes

updates[R]

Public Class Methods

new() click to toggle source
# File lib/chewy/rspec/update_index.rb, line 255
def initialize
  @updates = []
end

Public Instance Methods

perform(body) click to toggle source
# File lib/chewy/rspec/update_index.rb, line 259
def perform(body)
  @updates.concat(body.map(&:deep_symbolize_keys))
  []
end