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

require "spec_helper"
require "ruby_event_store/spec/dispatcher_lint"

module RailsEventStore
  ::RSpec.describe AfterCommitAsyncDispatcher do
    DummyError = Class.new(StandardError)

    class DummyRecord < ActiveRecord::Base
      self.table_na
    
    def with_raise_in_transactional_callbacks
      skip unless ActiveRecord::Base.respond_to?(:raise_in_transactional_callbacks)

      old_transaction_config = ActiveRecord::Base.raise_in_transactional_callbacks
      ActiveRecord::Base.raise_in_transactional_callbacks = true

      yield

      ActiveRecord::Base.raise_in_transactional_callbacks = old_transaction_config
    end