updates config files
This commit is contained in:
committed by
Julian Herrero
parent
868ae77692
commit
eb36b7e2e5
@@ -10,16 +10,13 @@ Rails.application.configure do
|
||||
# Do not eager load code on boot. This avoids loading your whole application
|
||||
# just for the purpose of running a single test. If you are using a tool that
|
||||
# preloads Rails for running tests, you may have to set it to true.
|
||||
config.eager_load = true
|
||||
config.eager_load = false
|
||||
|
||||
# Setting allow_corrency to false tells rails to force every request to
|
||||
# "wait in line", serving one after the other
|
||||
# Setting eager_load to true also sets allow_concurrency to true.
|
||||
config.allow_concurrency = false
|
||||
|
||||
# Configure static file server for tests with Cache-Control for performance.
|
||||
config.serve_static_files = true
|
||||
config.static_cache_control = "public, max-age=3600"
|
||||
# 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=3600"
|
||||
}
|
||||
|
||||
# Show full error reports and disable caching.
|
||||
config.consider_all_requests_local = true
|
||||
@@ -30,6 +27,7 @@ Rails.application.configure do
|
||||
|
||||
# Disable request forgery protection in test environment.
|
||||
config.action_controller.allow_forgery_protection = false
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user