-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Support Ruby 3.2. Drop support for Ruby 2.7, Rails 6.0
- Loading branch information
Showing
5 changed files
with
44 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,55 @@ | ||
require 'active_support/core_ext/integer/time' | ||
|
||
# The test environment is used exclusively to run your application's | ||
# test suite. You never need to work with it otherwise. Remember that | ||
# your test database is "scratch space" for the test suite and is wiped | ||
# and recreated between test runs. Don't rely on the data there! | ||
|
||
Dummy::Application.configure do | ||
# Settings specified here will take precedence over those in config/application.rb | ||
# Settings specified here will take precedence over those in config/application.rb. | ||
|
||
# The test environment is used exclusively to run your application's | ||
# test suite. You never need to work with it otherwise. Remember that | ||
# your test database is "scratch space" for the test suite and is wiped | ||
# and recreated between test runs. Don't rely on the data there! | ||
# Turn false under Spring and add config.action_view.cache_template_loading = true. | ||
config.cache_classes = true | ||
config.eager_load = true | ||
|
||
# Configure static asset server for tests with Cache-Control for performance | ||
if config.respond_to?(:public_file_server) | ||
config.public_file_server.enabled = true | ||
config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=3600' } | ||
else | ||
config.static_cache_control = 'public, max-age=3600' | ||
config.serve_static_files = true | ||
end | ||
# Eager loading loads your whole application. When running a single test locally, | ||
# this probably isn't necessary. It's a good idea to do in a continuous integration | ||
# system, or in some way before deploying your code. | ||
config.eager_load = ENV['CI'].present? | ||
|
||
# Log error messages when you accidentally call methods on nil | ||
config.whiny_nils = true | ||
# Configure public file server for tests with Cache-Control for performance. | ||
config.public_file_server.enabled = true | ||
config.public_file_server.headers = { 'Cache-Control' => "public, max-age=#{1.hour.to_i}" } | ||
|
||
# Don't show error reports, but disable caching | ||
config.consider_all_requests_local = false | ||
config.action_controller.perform_caching = false | ||
config.cache_store = :null_store | ||
|
||
# Let middleware intercept errors: | ||
config.action_dispatch.show_exceptions = true | ||
|
||
# Disable request forgery protection in test environment | ||
# Disable request forgery protection in test environment. | ||
config.action_controller.allow_forgery_protection = false | ||
|
||
# Randomise test order each time | ||
config.active_support.test_order = :random | ||
config.action_mailer.perform_caching = false | ||
|
||
# Tell Action Mailer not to deliver emails to the real world. | ||
# The :test delivery method accumulates sent emails in the | ||
# ActionMailer::Base.deliveries array. | ||
config.action_mailer.delivery_method = :test | ||
|
||
# Print deprecation notices to the stderr | ||
# Print deprecation notices to the stderr. | ||
config.active_support.deprecation = :stderr | ||
|
||
# Raise exceptions for disallowed deprecations. | ||
config.active_support.disallowed_deprecation = :raise | ||
|
||
# Tell Active Support which deprecation messages to disallow. | ||
config.active_support.disallowed_deprecation_warnings = [] | ||
|
||
# Raises error for missing translations. | ||
# config.i18n.raise_on_missing_translations = true | ||
|
||
# Annotate rendered view with file names. | ||
# config.action_view.annotate_rendered_view_with_filenames = true | ||
end |