diff options
Diffstat (limited to 'config/environments/test.rb')
| -rw-r--r-- | config/environments/test.rb | 25 |
1 files changed, 19 insertions, 6 deletions
diff --git a/config/environments/test.rb b/config/environments/test.rb index d5a5fe5e8..90bf328fc 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,16 +46,27 @@ 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" # api key to geoportail IGN (production key link to application url root referer) config.geoportail_api_key = "aaaaaaaaaaaaaa" - # Specific for each company - config.company_name = "afimb" - config.company_theme = "#61970b" + # Specific theme for each company + # AFIMB + config.company_name = "afimb" + config.company_theme = "#61970b" # AFIMB color config.company_contact = "http://www.chouette.mobi/contact-support/" + config.accept_user_creation = true + + # CITYWAY + # config.company_name = "cityway" + # config.company_theme = "#32adb0" + # config.company_contact = "http://www.cityway.fr/contact/?rub_code=14" + # config.accept_user_creation = false # file to data for demo config.demo_data = "tmp/demo.zip" |
