You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: batch_test.rb
    path of file: ./repos/occams-record/test
    
    the code of the file until where you have to start completion: require 'test_helper'

class Batch
    
  def test_batches_orders_by_pkey
    log = []
    OccamsRecord.
      query(Widget.all, query_logger: log).
      find_each(batch_size: 1000).
      to_a
    assert_includes log.map { |x|
      normalize_sql x
    }, %(root: SELECT widgets.* FROM widgets ORDER BY widgets.id ASC LIMIT 1000 OFFSET 0)
  end