Skip to content

Commit 4079ded

Browse files
committed
bin/rails app:update partially accepted
1 parent 1bd6c25 commit 4079ded

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

config/environments/test.rb

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@
2323

2424
# Configure public file server for tests with Cache-Control for performance.
2525
config.public_file_server.enabled = true
26-
config.public_file_server.headers = {
27-
"Cache-Control" => "public, max-age=#{1.hour.to_i}"
28-
}
26+
config.public_file_server.headers = { "Cache-Control" => "public, max-age=#{1.hour.to_i}" }
2927

3028
# Show full error reports and disable caching.
3129
config.consider_all_requests_local = true
@@ -38,13 +36,19 @@
3836
# Disable request forgery protection in test environment.
3937
config.action_controller.allow_forgery_protection = false
4038

39+
# Disable caching for Action Mailer templates even if Action Controller
40+
# caching is enabled.
4141
config.action_mailer.perform_caching = false
4242

4343
# Tell Action Mailer not to deliver emails to the real world.
4444
# The :test delivery method accumulates sent emails in the
4545
# ActionMailer::Base.deliveries array.
4646
config.action_mailer.delivery_method = :test
4747

48+
# Unlike controllers, the mailer instance doesn't have any context about the
49+
# incoming request so you'll need to provide the :host parameter yourself.
50+
config.action_mailer.default_url_options = { host: "www.example.com" }
51+
4852
# Print deprecation notices to the stderr.
4953
config.active_support.deprecation = :stderr
5054

@@ -60,6 +64,6 @@
6064
# Annotate rendered view with file names.
6165
# config.action_view.annotate_rendered_view_with_filenames = true
6266

63-
# Raise error when a before_action's only/except options reference missing actions
67+
# Raise error when a before_action's only/except options reference missing actions.
6468
config.action_controller.raise_on_missing_callback_actions = true
6569
end

0 commit comments

Comments
 (0)