|
1 |
| -require "active_support/core_ext/integer/time" |
2 |
| - |
3 | 1 | # The test environment is used exclusively to run your application's
|
4 | 2 | # test suite. You never need to work with it otherwise. Remember that
|
5 | 3 | # your test database is "scratch space" for the test suite and is wiped
|
|
17 | 15 | # loading is working properly before deploying your code.
|
18 | 16 | config.eager_load = ENV["CI"].present?
|
19 | 17 |
|
20 |
| - # Configure public file server for tests with Cache-Control for performance. |
21 |
| - config.public_file_server.headers = { "Cache-Control" => "public, max-age=#{1.hour.to_i}" } |
| 18 | + # Configure public file server for tests with cache-control for performance. |
| 19 | + config.public_file_server.headers = { "cache-control" => "public, max-age=3600" } |
22 | 20 |
|
23 |
| - # Show full error reports and disable caching. |
| 21 | + # Show full error reports. |
24 | 22 | config.consider_all_requests_local = true
|
25 |
| - config.action_controller.perform_caching = false |
26 | 23 | config.cache_store = :null_store
|
27 | 24 |
|
28 | 25 | # Render exception templates for rescuable exceptions and raise for other exceptions.
|
|
34 | 31 | # Store uploaded files on the local file system in a temporary directory.
|
35 | 32 | config.active_storage.service = :test
|
36 | 33 |
|
37 |
| - # Disable caching for Action Mailer templates even if Action Controller |
38 |
| - # caching is enabled. |
39 |
| - config.action_mailer.perform_caching = false |
40 |
| - |
41 | 34 | # Tell Action Mailer not to deliver emails to the real world.
|
42 | 35 | # The :test delivery method accumulates sent emails in the
|
43 | 36 | # ActionMailer::Base.deliveries array.
|
44 | 37 | config.action_mailer.delivery_method = :test
|
45 | 38 |
|
46 |
| - # Unlike controllers, the mailer instance doesn't have any context about the |
47 |
| - # incoming request so you'll need to provide the :host parameter yourself. |
| 39 | + # Set host to be used by links generated in mailer templates. |
48 | 40 | config.action_mailer.default_url_options = { host: "coderdojo.jp" }
|
49 | 41 |
|
50 | 42 | # Print deprecation notices to the stderr.
|
51 | 43 | config.active_support.deprecation = :stderr
|
52 | 44 |
|
53 |
| - # Raise exceptions for disallowed deprecations. |
54 |
| - config.active_support.disallowed_deprecation = :raise |
55 |
| - |
56 |
| - # Tell Active Support which deprecation messages to disallow. |
57 |
| - config.active_support.disallowed_deprecation_warnings = [] |
58 |
| - |
59 | 45 | # Raises error for missing translations.
|
60 | 46 | # config.i18n.raise_on_missing_translations = true
|
61 | 47 |
|
|
0 commit comments