1 # Copyright (C) The Arvados Authors. All rights reserved.
3 # SPDX-License-Identifier: AGPL-3.0
5 Rails.application.configure do
6 # Settings specified here will take precedence over those in config/application.rb
8 # The test environment is used exclusively to run your application's
9 # test suite. You never need to work with it otherwise. Remember that
10 # your test database is "scratch space" for the test suite and is wiped
11 # and recreated between test runs. Don't rely on the data there!
12 config.cache_classes = true
14 # Configure static asset server for tests with Cache-Control for performance
15 config.public_file_server.enabled = true
16 config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=3600' }
18 # Log error messages when you accidentally call methods on nil
19 config.whiny_nils = true
21 # Show full error reports and disable caching
22 config.consider_all_requests_local = true
23 config.action_controller.perform_caching = false
25 # Raise exceptions instead of rendering exception templates
26 config.action_dispatch.show_exceptions = false
28 # Disable request forgery protection in test environment
29 config.action_controller.allow_forgery_protection = false
31 # Tell Action Mailer not to deliver emails to the real world.
32 # The :test delivery method accumulates sent emails in the
33 # ActionMailer::Base.deliveries array.
34 config.action_mailer.delivery_method = :test
36 # Use SQL instead of Active Record's schema dumper when creating the test database.
37 # This is necessary if your schema can't be completely dumped by the schema dumper,
38 # like if you have constraints or database-specific column types
39 # config.active_record.schema_format = :sql
41 # Print deprecation notices to the stderr
42 config.active_support.deprecation = :stderr
44 # No need for SSL while testing
45 config.force_ssl = false
47 # I18n likes to warn when this variable is not set
48 I18n.enforce_available_locales = true