comparison config/environments/test.rb @ 255:eda83610b65c

Update rails and stuff
author nanaya <me@nanaya.net>
date Sun, 15 Dec 2024 22:45:33 +0900
parents 89f6c0016bab
children
comparison
equal deleted inserted replaced
254:89f6c0016bab 255:eda83610b65c
1 require "active_support/core_ext/integer/time"
2
3 # The test environment is used exclusively to run your application's 1 # The test environment is used exclusively to run your application's
4 # test suite. You never need to work with it otherwise. Remember that 2 # test suite. You never need to work with it otherwise. Remember that
5 # your test database is "scratch space" for the test suite and is wiped 3 # your test database is "scratch space" for the test suite and is wiped
6 # and recreated between test runs. Don't rely on the data there! 4 # and recreated between test runs. Don't rely on the data there!
7 5
15 # this is usually not necessary, and can slow down your test suite. However, it's 13 # this is usually not necessary, and can slow down your test suite. However, it's
16 # recommended that you enable it in continuous integration systems to ensure eager 14 # recommended that you enable it in continuous integration systems to ensure eager
17 # loading is working properly before deploying your code. 15 # loading is working properly before deploying your code.
18 config.eager_load = ENV["CI"].present? 16 config.eager_load = ENV["CI"].present?
19 17
20 # Configure public file server for tests with Cache-Control for performance. 18 # 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}" } 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 config.consider_all_requests_local = true 22 config.consider_all_requests_local = true
25 config.action_controller.perform_caching = false
26 config.cache_store = :null_store 23 config.cache_store = :null_store
27 24
28 # Render exception templates for rescuable exceptions and raise for other exceptions. 25 # Render exception templates for rescuable exceptions and raise for other exceptions.
29 config.action_dispatch.show_exceptions = :rescuable 26 config.action_dispatch.show_exceptions = :rescuable
30 27
32 config.action_controller.allow_forgery_protection = false 29 config.action_controller.allow_forgery_protection = false
33 30
34 # Print deprecation notices to the stderr. 31 # Print deprecation notices to the stderr.
35 config.active_support.deprecation = :stderr 32 config.active_support.deprecation = :stderr
36 33
37 # Raise exceptions for disallowed deprecations.
38 config.active_support.disallowed_deprecation = :raise
39
40 # Tell Active Support which deprecation messages to disallow.
41 config.active_support.disallowed_deprecation_warnings = []
42
43 # Raises error for missing translations. 34 # Raises error for missing translations.
44 # config.i18n.raise_on_missing_translations = true 35 # config.i18n.raise_on_missing_translations = true
45 36
46 # Annotate rendered view with file names. 37 # Annotate rendered view with file names.
47 # config.action_view.annotate_rendered_view_with_filenames = true 38 # config.action_view.annotate_rendered_view_with_filenames = true