3 Pettanr::Application.configure do
4 # Settings specified here will take precedence over those in config/application.rb
6 # The test environment is used exclusively to run your application's
7 # test suite. You never need to work with it otherwise. Remember that
8 # your test database is "scratch space" for the test suite and is wiped
9 # and recreated between test runs. Don't rely on the data there!
10 config.cache_classes = true
12 # Configure static asset server for tests with Cache-Control for performance
13 config.serve_static_assets = true
14 config.static_cache_control = "public, max-age=3600"
16 # Log error messages when you accidentally call methods on nil
17 config.whiny_nils = true
19 # Show full error reports and disable caching
20 config.consider_all_requests_local = true
21 config.action_controller.perform_caching = false
23 # Raise exceptions instead of rendering exception templates
24 config.action_dispatch.show_exceptions = false
26 # Disable request forgery protection in test environment
27 config.action_controller.allow_forgery_protection = false
29 # Tell Action Mailer not to deliver emails to the real world.
30 # The :test delivery method accumulates sent emails in the
31 # ActionMailer::Base.deliveries array.
32 config.action_mailer.delivery_method = :test
34 # Use SQL instead of Active Record's schema dumper when creating the test database.
35 # This is necessary if your schema can't be completely dumped by the schema dumper,
36 # like if you have constraints or database-specific column types
37 # config.active_record.schema_format = :sql
39 # Print deprecation notices to the stderr
40 config.active_support.deprecation = :stderr
43 require 'local_picture'
44 PictureIO.setup do |config|
45 config.original_picture_io = PictureIO::LocalPicture.new '/sites/original/pettanr/'
46 config.resource_picture_io = PictureIO::LocalPicture.new '/sites/resource/pettanr/'
47 config.system_picture_io = PictureIO::LocalPicture.new '/sites/system/pettanr/'