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

module RubyEventStore
  module Browser
    module IntegrationHelpers
      class << self
        def included(base)
          base.include(with)
        end

        def with(app: ->(itself) { itself }, host: "www.example.com")
          Module.new do
            define_method :default_app do
              App.for(event_store_locator: -> { event_store })
            end

            define_method :web_client do
     
    
        def with(app: ->(itself) { itself }, host: "www.example.com")
          Module.new do
            define_method :default_app do
              App.for(event_store_locator: -> { event_store })
            end

            define_method :web_client do
              @web_client ||= WebClient.new(app[default_app], host)
            end

            define_method :api_client do
              @api_client ||= ApiClient.new(app[default_app], host)
            end

            define_method :event_store do
              @event_store ||= Client.new.tap do |event_store|
                event_store.subscribe_to_all_events(LinkByCorrelationId.new(event_store: event_store))
                event_store.subscribe_to_all_events(LinkByCausationId.new(event_store: event_store))
                event_store.subscribe_to_all_events(LinkByEventType.new(event_store: event_store))
              end
            end
          end
        end