2 Pettanr::Application.configure do
3 # Settings specified here will take precedence over those in config/application.rb
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
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"
15 # Log error messages when you accidentally call methods on nil
16 config.whiny_nils = true
18 # Show full error reports and disable caching
19 config.consider_all_requests_local = true
20 config.action_controller.perform_caching = false
22 # Raise exceptions instead of rendering exception templates
23 config.action_dispatch.show_exceptions = false
25 # Disable request forgery protection in test environment
26 config.action_controller.allow_forgery_protection = false
28 # Tell Action Mailer not to deliver emails to the real world.
29 # The :test delivery method accumulates sent emails in the
30 # ActionMailer::Base.deliveries array.
31 config.action_mailer.delivery_method = :test
33 # Use SQL instead of Active Record's schema dumper when creating the test database.
34 # This is necessary if your schema can't be completely dumped by the schema dumper,
35 # like if you have constraints or database-specific column types
36 # config.active_record.schema_format = :sql
38 # Print deprecation notices to the stderr
39 config.active_support.deprecation = :stderr
43 if File.exist? Rails.root + 'config/test_layout'