diff options
Diffstat (limited to 'config/environments/test.rb')
| -rw-r--r-- | config/environments/test.rb | 55 |
1 files changed, 27 insertions, 28 deletions
diff --git a/config/environments/test.rb b/config/environments/test.rb index a138599bb..e878822cd 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -1,49 +1,37 @@ -ChouetteIhm::Application.configure do - # Settings specified here will take precedence over those in config/application.rb +Rails.application.configure do + # 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 + # 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! + # 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" - # Log error messages when you accidentally call methods on nil - config.whiny_nils = true + # Configure static asset server for tests with Cache-Control for performance. + config.serve_static_assets = true + config.static_cache_control = 'public, max-age=3600' - # Show full error reports and disable caching + # Show full error reports and disable caching. config.consider_all_requests_local = true config.action_controller.perform_caching = false - # Raise exceptions instead of rendering exception templates + # Raise exceptions instead of rendering exception templates. config.action_dispatch.show_exceptions = false - # Disable request forgery protection in test environment - config.action_controller.allow_forgery_protection = false - - # Configure the e-mail address which will be shown in Devise::Maile - config.mailer_sender = "appli@chouette.mobi" + # Disable request forgery protection in test environment. + config.action_controller.allow_forgery_protection = 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 - config.action_mailer.default_url_options = { :host => 'localhost:3000' } - # Use SQL instead of Active Record's schema dumper when creating the test database. - # This is necessary if your schema can't be completely dumped by the schema dumper, - # like if you have constraints or database-specific column types - # config.active_record.schema_format = :sql - - # Print deprecation notices to the stderr + # Print deprecation notices to the stderr. config.active_support.deprecation = :stderr # Raises error for missing translations @@ -51,10 +39,10 @@ ChouetteIhm::Application.configure do # 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 theme for each company # AFIMB config.company_name = "afimb" @@ -70,13 +58,24 @@ ChouetteIhm::Application.configure do # file to data for demo config.demo_data = "tmp/demo.zip" - + # link to validation specification pages config.validation_spec = "http://www.chouette.mobi/neptune-validation/v20/" + config.action_mailer.default_url_options = { :host => 'localhost:3000' } + + # Configure the e-mail address which will be shown in Devise::Maile + config.mailer_sender = "appli@chouette.mobi" + + config.action_mailer.delivery_method = :sendmail + # change to true to allow email to be sent during development + config.action_mailer.perform_deliveries = false + config.action_mailer.raise_delivery_errors = false + config.action_mailer.default :charset => "utf-8" + config.to_prepare do Chouette::Command.command = "true" end - + config.i18n.available_locales = [:fr, :en] end |
