```ruby
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
```

Disable HostAuthorization middleware in testing.
user
```ruby
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
```
assistant