-
Notifications
You must be signed in to change notification settings - Fork 49
Configuration
Matt Jankowski edited this page Jul 19, 2023
·
1 revision
As noted in the readme it is possible to pass through configuration options into the initialization of the Rails app that combustion is creating in your specs.
As an example, here's how to configure a Rails 7.1 app along with some common job/mailer settings:
Combustion.initialize! :all do
config.load_defaults 7.1
config.action_mailer.delivery_method = :test
config.active_job.queue_adapter = :inline
end
Generally speaking, you can use this configuration approach to set up the sorts of options you might have config/application.rb
or config/environments/*
in typical Rails applications.
If you are using combustion with Appraisal or some other CI version matrix approach, be careful to set options here in a way that makes sense for each individual Rails version that might be run in your CI environment.