diff options
Diffstat (limited to 'config/environments/test.rb')
| -rw-r--r-- | config/environments/test.rb | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/config/environments/test.rb b/config/environments/test.rb index 728e1470..3b2413ea 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb | |||
| @@ -1,32 +1,23 @@ | |||
| 1 | # Settings specified here will take precedence over those in config/environment.rb | ||
| 2 | |||
| 3 | Cccms::Application.configure do | 1 | Cccms::Application.configure do |
| 4 | 2 | ||
| 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 | 3 | config.cache_classes = true |
| 10 | 4 | ||
| 11 | # Log error messages when you accidentally call methods on nil. | 5 | # Log error messages when you accidentally call methods on nil. |
| 12 | config.whiny_nils = true | 6 | # config.whiny_nils = true # removed in Rails 4 |
| 13 | 7 | ||
| 14 | # Show full error reports and disable caching | ||
| 15 | config.action_controller.consider_all_requests_local = true | 8 | config.action_controller.consider_all_requests_local = true |
| 16 | config.action_controller.perform_caching = false | 9 | config.action_controller.perform_caching = false |
| 17 | 10 | ||
| 18 | # Disable request forgery protection in test environment | ||
| 19 | config.action_controller.allow_forgery_protection = false | 11 | config.action_controller.allow_forgery_protection = false |
| 20 | 12 | ||
| 21 | # Tell Action Mailer not to deliver emails to the real world. | ||
| 22 | # The :test delivery method accumulates sent emails in the | ||
| 23 | # ActionMailer::Base.deliveries array. | ||
| 24 | config.action_mailer.delivery_method = :test | 13 | config.action_mailer.delivery_method = :test |
| 25 | 14 | ||
| 26 | # Use SQL instead of Active Record's schema dumper when creating the test database. | 15 | config.active_support.deprecation = :log |
| 27 | # This is necessary if your schema can't be completely dumped by the schema dumper, | 16 | config.active_support.test_order = :sorted |
| 28 | # like if you have constraints or database-specific column types | 17 | |
| 29 | # config.active_record.schema_format = :sql | 18 | config.active_record.raise_in_transactional_callbacks = true |
| 30 | 19 | ||
| 31 | config.active_support.deprecation = :raise | 20 | config.eager_load = false |
| 21 | config.serve_static_files = true | ||
| 22 | config.static_cache_control = "public, max-age=3600" | ||
| 32 | end | 23 | end |
