test.rb 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. Discite::Application.configure do
  2. # The test environment is used exclusively to run your application's
  3. # test suite. You never need to work with it otherwise. Remember that
  4. # your test database is "scratch space" for the test suite and is wiped
  5. # and recreated between test runs. Don't rely on the data there!
  6. config.cache_classes = true
  7. # Do not eager load code on boot. This avoids loading your whole application
  8. # just for the purpose of running a single test. If you are using a tool that
  9. # preloads Rails for running tests, you may have to set it to true.
  10. config.eager_load = false
  11. # Configure static asset server for tests with Cache-Control for performance.
  12. config.serve_static_assets = true
  13. config.static_cache_control = 'public, max-age=3600'
  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. # Disable request forgery protection in test environment.
  20. config.action_controller.allow_forgery_protection = false
  21. # Tell Action Mailer not to deliver emails to the real world.
  22. # The :test delivery method accumulates sent emails in the
  23. # ActionMailer::Base.deliveries array.
  24. config.action_mailer.delivery_method = :test
  25. # Print deprecation notices to the stderr.
  26. config.active_support.deprecation = :stderr
  27. end