Skip to content

Commit

Permalink
tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
loftwah committed Dec 24, 2024
1 parent 02f461a commit 9cf83be
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

Rails.application.configure do
config.enable_reloading = false
config.assets.compile = true
config.assets.digest = true
config.eager_load = ENV["CI"].present?


# This is the key change - we need eager loading in test for Devise
config.eager_load = true
config.public_file_server.enabled = true
config.public_file_server.headers = {
"cache-control" => "public, max-age=#{1.hour.to_i}"
Expand All @@ -21,12 +21,11 @@
config.action_mailer.perform_caching = false
config.action_mailer.delivery_method = :test

# Mail config
config.action_mailer.default_url_options = { host: 'localhost:3000' }

config.active_support.deprecation = :stderr
config.active_support.report_deprecations = true

# Uncomment if needed:
# config.i18n.raise_on_missing_translations = true
# config.action_view.annotate_rendered_view_with_filenames = true

config.action_controller.raise_on_missing_callback_actions = true
end
end

0 comments on commit 9cf83be

Please sign in to comment.