Skip to content

Instantly share code, notes, and snippets.

@cjavdev
Created August 27, 2024 13:48
Show Gist options
  • Save cjavdev/bef7b08b7c9ad9f58c94d0e60f4069d2 to your computer and use it in GitHub Desktop.
Save cjavdev/bef7b08b7c9ad9f58c94d0e60f4069d2 to your computer and use it in GitHub Desktop.
Rails 7.2 ApplicationSystemTestCase missing host
# config/environments/test.rb
# ...
# Already had this:
config.action_mailer.default_url_options = { host: "www.example.com" }
# Had to add this:
Rails.application.routes.default_url_options = { host: "www.example.com" }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment