Mercurial > zeropaste
annotate config/environments/test.rb @ 502:507b7f8e8b3b
Remove stdout logging option (already the default)
author | nanaya <me@nanaya.net> |
---|---|
date | Mon, 16 Dec 2024 01:12:44 +0900 |
parents | 92929378413e |
children |
rev | line source |
---|---|
467 | 1 # The test environment is used exclusively to run your application's |
2 # test suite. You never need to work with it otherwise. Remember that | |
3 # your test database is "scratch space" for the test suite and is wiped | |
4 # and recreated between test runs. Don't rely on the data there! | |
5 | |
431 | 6 Rails.application.configure do |
202
d4cf49db9c49
...copypasta the whole environments from clean 4.0
Edho Arief <edho@myconan.net>
parents:
201
diff
changeset
|
7 # Settings specified here will take precedence over those in config/application.rb. |
0 | 8 |
495 | 9 # While tests run files are not watched, reloading is not necessary. |
10 config.enable_reloading = false | |
0 | 11 |
495 | 12 # Eager loading loads your entire application. When running a single test locally, |
13 # this is usually not necessary, and can slow down your test suite. However, it's | |
14 # recommended that you enable it in continuous integration systems to ensure eager | |
15 # loading is working properly before deploying your code. | |
485 | 16 config.eager_load = ENV["CI"].present? |
202
d4cf49db9c49
...copypasta the whole environments from clean 4.0
Edho Arief <edho@myconan.net>
parents:
201
diff
changeset
|
17 |
495 | 18 # Configure public file server for tests with cache-control for performance. |
19 config.public_file_server.headers = { "cache-control" => "public, max-age=3600" } | |
0 | 20 |
495 | 21 # Show full error reports. |
22 config.consider_all_requests_local = true | |
467 | 23 config.cache_store = :null_store |
0 | 24 |
495 | 25 # Render exception templates for rescuable exceptions and raise for other exceptions. |
26 config.action_dispatch.show_exceptions = :rescuable | |
0 | 27 |
202
d4cf49db9c49
...copypasta the whole environments from clean 4.0
Edho Arief <edho@myconan.net>
parents:
201
diff
changeset
|
28 # Disable request forgery protection in test environment. |
d4cf49db9c49
...copypasta the whole environments from clean 4.0
Edho Arief <edho@myconan.net>
parents:
201
diff
changeset
|
29 config.action_controller.allow_forgery_protection = false |
0 | 30 |
202
d4cf49db9c49
...copypasta the whole environments from clean 4.0
Edho Arief <edho@myconan.net>
parents:
201
diff
changeset
|
31 # Print deprecation notices to the stderr. |
0 | 32 config.active_support.deprecation = :stderr |
363
9e860754b5d6
Update renamed config, enforce random test order.
edogawaconan <me@myconan.net>
parents:
205
diff
changeset
|
33 |
467 | 34 # Raises error for missing translations. |
481 | 35 # config.i18n.raise_on_missing_translations = true |
36 | |
37 # Annotate rendered view with file names. | |
38 # config.action_view.annotate_rendered_view_with_filenames = true | |
495 | 39 |
40 # Raise error when a before_action's only/except options reference missing actions. | |
41 config.action_controller.raise_on_missing_callback_actions = true | |
0 | 42 end |