require 'action_controller/railtie'
require 'rails_event_store/railtie'
require 'securerandom'

class TestApplication < Rails::Application
  config.eager_load = false
  config.secret_key_base = SecureRandom.hex(16)
  config.event_store = RailsEventStore::Client.new
  initialize!
  routes.default_url_options = { host: 'example.org' }
end

require 'action_controller/railtie'
require 'rails_event_store/railtie'
require 'securerandom'

class TestApplication < Rails::Application
  config.hosts = nil
  config.eager_load = false
  config.secret_key_base = SecureRandom.hex(16)
  config.event_store = RailsEventStore::Client.new
  initialize!
  routes.default_url_options = { host: 'example.org' }
end

Disable HostAuthorization middleware in testing.
Disable HostAuthorization middleware in testing.

https://stackoverflow.com/a/56238430
