From c20e077b6542d3c4ea83fc918a16fe985f4dfd1b Mon Sep 17 00:00:00 2001 From: Artur Beljajev Date: Thu, 29 Nov 2018 15:32:24 +0200 Subject: [PATCH] Set `config.active_support.deprecation` to :stderr in test env Otherwise calling `ActiveSupport::Deprecation.warn` leads to failing tests --- config/environments/test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/environments/test.rb b/config/environments/test.rb index 544370369..119f6d815 100644 --- a/config/environments/test.rb +++ b/config/environments/test.rb @@ -16,7 +16,7 @@ Rails.application.configure do config.action_mailer.delivery_method = :test config.active_support.test_order = :random - config.active_support.deprecation = :raise + config.active_support.deprecation = :stderr config.logger = ActiveSupport::Logger.new(nil) config.action_view.raise_on_missing_translations = true