test.rb 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. #---
  2. # Excerpted from "Agile Web Development with Rails",
  3. # published by The Pragmatic Bookshelf.
  4. # Copyrights apply to this code. It may not be used to create training material,
  5. # courses, books, articles, and the like. Contact us if you are in doubt.
  6. # We make no guarantees that this code is fit for any purpose.
  7. # Visit http://www.pragmaticprogrammer.com/titles/rails4 for more book information.
  8. #---
  9. #---
  10. # Excerpted from "Agile Web Development with Rails, 4rd Ed.",
  11. # published by The Pragmatic Bookshelf.
  12. # Copyrights apply to this code. It may not be used to create training material,
  13. # courses, books, articles, and the like. Contact us if you are in doubt.
  14. # We make no guarantees that this code is fit for any purpose.
  15. # Visit http://www.pragmaticprogrammer.com/titles/rails4 for more book information.
  16. #---
  17. Depot::Application.configure do
  18. # Settings specified here will take precedence over those in config/application.rb
  19. # The test environment is used exclusively to run your application's
  20. # test suite. You never need to work with it otherwise. Remember that
  21. # your test database is "scratch space" for the test suite and is wiped
  22. # and recreated between test runs. Don't rely on the data there!
  23. config.cache_classes = true
  24. # Log error messages when you accidentally call methods on nil.
  25. config.whiny_nils = true
  26. # Show full error reports and disable caching
  27. config.consider_all_requests_local = true
  28. config.action_controller.perform_caching = false
  29. # Raise exceptions instead of rendering exception templates
  30. config.action_dispatch.show_exceptions = false
  31. # Disable request forgery protection in test environment
  32. config.action_controller.allow_forgery_protection = false
  33. # Tell Action Mailer not to deliver emails to the real world.
  34. # The :test delivery method accumulates sent emails in the
  35. # ActionMailer::Base.deliveries array.
  36. config.action_mailer.delivery_method = :test
  37. # Use SQL instead of Active Record's schema dumper when creating the test database.
  38. # This is necessary if your schema can't be completely dumped by the schema dumper,
  39. # like if you have constraints or database-specific column types
  40. # config.active_record.schema_format = :sql
  41. # Print deprecation notices to the stderr
  42. config.active_support.deprecation = :stderr
  43. end