214
|
1 require "active_support/core_ext/integer/time"
|
|
2
|
185
|
3 # The test environment is used exclusively to run your application's
|
|
4 # 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
|
|
6 # and recreated between test runs. Don't rely on the data there!
|
|
7
|
0
|
8 Rails.application.configure do
|
|
9 # Settings specified here will take precedence over those in config/application.rb.
|
|
10
|
254
|
11 # While tests run files are not watched, reloading is not necessary.
|
|
12 config.enable_reloading = false
|
0
|
13
|
254
|
14 # Eager loading loads your entire application. When running a single test locally,
|
|
15 # 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
|
|
17 # loading is working properly before deploying your code.
|
223
|
18 config.eager_load = ENV["CI"].present?
|
0
|
19
|
72
|
20 # Configure public file server for tests with Cache-Control for performance.
|
254
|
21 config.public_file_server.headers = { "Cache-Control" => "public, max-age=#{1.hour.to_i}" }
|
0
|
22
|
|
23 # Show full error reports and disable caching.
|
254
|
24 config.consider_all_requests_local = true
|
0
|
25 config.action_controller.perform_caching = false
|
185
|
26 config.cache_store = :null_store
|
0
|
27
|
254
|
28 # Render exception templates for rescuable exceptions and raise for other exceptions.
|
|
29 config.action_dispatch.show_exceptions = :rescuable
|
0
|
30
|
|
31 # Disable request forgery protection in test environment.
|
|
32 config.action_controller.allow_forgery_protection = false
|
|
33
|
|
34 # Print deprecation notices to the stderr.
|
|
35 config.active_support.deprecation = :stderr
|
|
36
|
214
|
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
|
185
|
43 # Raises error for missing translations.
|
214
|
44 # config.i18n.raise_on_missing_translations = true
|
|
45
|
|
46 # Annotate rendered view with file names.
|
|
47 # config.action_view.annotate_rendered_view_with_filenames = true
|
254
|
48
|
|
49 # Raise error when a before_action's only/except options reference missing actions.
|
|
50 config.action_controller.raise_on_missing_callback_actions = true
|
0
|
51 end
|