Advertisement
Guest User

Untitled

a guest
Feb 1st, 2015
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.01 KB | None | 0 0
  1. Rails.application.configure do
  2. # Settings specified here will take precedence over those in
  3. # config/application.rb.
  4.  
  5. # The test environment is used exclusively to run your application's
  6. # test suite. You never need to work with it otherwise. Remember that
  7. # your test database is "scratch space" for the test suite and is wiped
  8. # and recreated between test runs. Don't rely on the data there!
  9. config.cache_classes = true
  10.  
  11. # Do not eager load code on boot. This avoids loading your whole application
  12. # just for the purpose of running a single test. If you are using a tool
  13. # that preloads Rails for running tests, you may have to set it to true.
  14. config.eager_load = false
  15.  
  16. # Configure static asset server for tests with Cache-Control for performance
  17. config.serve_static_files = true
  18. config.static_cache_control = 'public, max-age=3600'
  19.  
  20. # Show full error reports and disable caching.
  21. config.consider_all_requests_local = true
  22. config.action_controller.perform_caching = false
  23.  
  24. # Raise exceptions instead of rendering exception templates.
  25. config.action_dispatch.show_exceptions = false
  26.  
  27. # Disable request forgery protection in test environment.
  28. config.action_controller.allow_forgery_protection = false
  29.  
  30. # Tell Action Mailer not to deliver emails to the real world.
  31. # The :test delivery method accumulates sent emails in the
  32. # ActionMailer::Base.deliveries array.
  33. config.action_mailer.delivery_method = :test
  34.  
  35. # Randomize the order test cases are executed.
  36. config.active_support.test_order = :random
  37.  
  38. # Print deprecation notices to the stderr.
  39. config.active_support.deprecation = :stderr
  40.  
  41. # Raises error for missing translations
  42. # config.action_view.raise_on_missing_translations = true
  43.  
  44. config.action_mailer.default_url_options = {
  45. host: 'localhost',
  46. port: 3001
  47. }
  48.  
  49. # Refresh the assets when running the tests
  50. config.assets.enabled = true
  51. config.assets.compile = true
  52. config.assets.compress = false
  53. config.assets.debug = false
  54. # config.assets.prefix = '/assets/'
  55. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement