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: idempotent_worker_helper.rb
    path of file: ./repos/gitlabhq/spec/support/helpers
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module IdempotentWorkerHelper
  WORKER_EXEC_TIMES = 2

  def perform_multiple(args = [], worker: described_class.new, exec_times: WORKER_EXEC_TIMES)

    
  def perform_multiple(args = [], worker: described_class.new, exec_times: WORKER_EXEC_TIMES)
    Sidekiq::Testing.inline! do
      job_args = args.nil? ? [nil] : Array.wrap(args)

      expect(worker).to receive(:perform).exactly(exec_times).and_call_original

      exec_times.times { worker.perform(*job_args) }
    end
  end