diff --git a/config/environments/test.rb b/config/environments/test.rb index ee99f2f..1f815fc 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -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"