aboutsummaryrefslogtreecommitdiffstats
path: root/config/environments/test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/environments/test.rb')
-rw-r--r--config/environments/test.rb11
1 files changed, 8 insertions, 3 deletions
diff --git a/config/environments/test.rb b/config/environments/test.rb
index d5a5fe5e8..661865fd0 100644
--- a/config/environments/test.rb
+++ b/config/environments/test.rb
@@ -7,6 +7,11 @@ ChouetteIhm::Application.configure do
# and recreated between test runs. Don't rely on the data there!
config.cache_classes = true
+ # 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 = false
+
# Configure static asset server for tests with Cache-Control for performance
config.serve_static_assets = true
config.static_cache_control = "public, max-age=3600"
@@ -24,9 +29,6 @@ ChouetteIhm::Application.configure do
# Disable request forgery protection in test environment
config.action_controller.allow_forgery_protection = false
-# Raise exception on mass assignment protection for Active Record models
- config.active_record.mass_assignment_sanitizer = :strict
-
# Configure the e-mail address which will be shown in Devise::Maile
config.mailer_sender = "appli@chouette.mobi"
@@ -44,6 +46,9 @@ ChouetteIhm::Application.configure do
# Print deprecation notices to the stderr
config.active_support.deprecation = :stderr
+ # Raises error for missing translations
+ # config.action_view.raise_on_missing_translations = true
+
# replace this with your production tracker code
GA.tracker = "UA-AAAAAAAA"