You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
295 B
Ruby

insert_into_file "config/environments/test.rb", after: /config\.action_mailer\.delivery_method = :test\n/ do
<<-RUBY
# Ensure mailer works in test
config.action_mailer.default_url_options = { host: "localhost:3000" }
config.action_mailer.asset_host = "http://localhost:3000"
RUBY
end