test.rb 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. AdminD5ctCom::Application.configure do
  2. # Settings specified here will take precedence over those in config/application.rb
  3. # The test environment is used exclusively to run your application's
  4. # test suite. You never need to work with it otherwise. Remember that
  5. # your test database is "scratch space" for the test suite and is wiped
  6. # and recreated between test runs. Don't rely on the data there!
  7. config.cache_classes = false
  8. config.eager_load = false
  9. # Configure static asset server for tests with Cache-Control for performance
  10. config.serve_static_files = true
  11. config.static_cache_control = "public, max-age=3600"
  12. # Log error messages when you accidentally call methods on nil
  13. config.whiny_nils = true
  14. # Show full error reports and disable caching
  15. config.consider_all_requests_local = true
  16. config.action_controller.perform_caching = false
  17. # Raise exceptions instead of rendering exception templates
  18. config.action_dispatch.show_exceptions = false
  19. #DEPRECATION WARNING: Currently, Active Record suppresses errors raised within `after_rollback`/`after_commit` callbacks
  20. #and only print them to the logs. In the next version, these errors will no longer be suppressed. Instead, the errors wil
  21. #l propagate normally just like in other Active Record callbacks.
  22. #You can opt into the new behavior and remove this warning by setting:
  23. config.active_record.raise_in_transactional_callbacks = true
  24. # Disable request forgery protection in test environment
  25. config.action_controller.allow_forgery_protection = false
  26. # Tell Action Mailer not to deliver emails to the real world.
  27. # The :test delivery method accumulates sent emails in the
  28. # ActionMailer::Base.deliveries array.
  29. config.action_mailer.delivery_method = :test
  30. # Raise exception on mass assignment protection for Active Record models
  31. # config.active_record.mass_assignment_sanitizer = :strict
  32. # Print deprecation notices to the stderr
  33. config.active_support.deprecation = :stderr
  34. end