comparison config/environments/test.rb @ 202:d4cf49db9c49

...copypasta the whole environments from clean 4.0
author Edho Arief <edho@myconan.net>
date Wed, 08 May 2013 00:29:54 +0900
parents 681bfba39449
children 10f1eb74e6d7
comparison
equal deleted inserted replaced
201:681bfba39449 202:d4cf49db9c49
1 Zeropaste::Application.configure do 1 Zeropaste::Application.configure do
2 # Settings specified here will take precedence over those in config/application.rb 2 # Settings specified here will take precedence over those in config/application.rb.
3 3
4 # The test environment is used exclusively to run your application's 4 # The test environment is used exclusively to run your application's
5 # test suite. You never need to work with it otherwise. Remember that 5 # test suite. You never need to work with it otherwise. Remember that
6 # your test database is "scratch space" for the test suite and is wiped 6 # your test database is "scratch space" for the test suite and is wiped
7 # and recreated between test runs. Don't rely on the data there! 7 # and recreated between test runs. Don't rely on the data there!
8 config.cache_classes = true 8 config.cache_classes = true
9 9
10 # Configure static asset server for tests with Cache-Control for performance 10 # Do not eager load code on boot. This avoids loading your whole application
11 config.serve_static_assets = true 11 # just for the purpose of running a single test. If you are using a tool that
12 # preloads Rails for running tests, you may have to set it to true.
13 config.eager_load = false
14
15 # Configure static asset server for tests with Cache-Control for performance.
16 config.serve_static_assets = true
12 config.static_cache_control = "public, max-age=3600" 17 config.static_cache_control = "public, max-age=3600"
13 18
14 # Show full error reports and disable caching 19 # Show full error reports and disable caching.
15 config.consider_all_requests_local = true 20 config.consider_all_requests_local = true
16 config.action_controller.perform_caching = false 21 config.action_controller.perform_caching = false
17 22
18 # Raise exceptions instead of rendering exception templates 23 # Raise exceptions instead of rendering exception templates.
19 config.action_dispatch.show_exceptions = false 24 config.action_dispatch.show_exceptions = false
20 25
21 # Disable request forgery protection in test environment 26 # Disable request forgery protection in test environment.
22 config.action_controller.allow_forgery_protection = false 27 config.action_controller.allow_forgery_protection = false
23 28
24 # Tell Action Mailer not to deliver emails to the real world. 29 # Tell Action Mailer not to deliver emails to the real world.
25 # The :test delivery method accumulates sent emails in the 30 # The :test delivery method accumulates sent emails in the
26 # ActionMailer::Base.deliveries array. 31 # ActionMailer::Base.deliveries array.
27 config.action_mailer.delivery_method = :test 32 config.action_mailer.delivery_method = :test
28 33
29 # Print deprecation notices to the stderr 34 # Print deprecation notices to the stderr.
30 config.active_support.deprecation = :stderr 35 config.active_support.deprecation = :stderr
31
32 config.eager_load = false
33 end 36 end