Forward deprecation of tests to Rails 5

This commit is contained in:
Christoph Haas 2015-04-23 17:21:55 +02:00
parent 383f69c0b7
commit 9f6bcd12e4

View file

@ -12,6 +12,12 @@ Debshots::Application.configure do
# preloads Rails for running tests, you may have to set it to true.
config.eager_load = false
# ActiveRecord errors propagate normally (forward deprecation to Rails 5)
config.active_record.raise_in_transactional_callbacks = true
# Test :sorted or :random. ":random" may be safer but harder to debug.
config.active_support.test_order = :sorted
# Configure static asset server for tests with Cache-Control for performance.
config.serve_static_files = true
config.static_cache_control = "public, max-age=3600"