From 7143879759ff65ab585016a0a442bb49805342e2 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 19 Sep 2018 16:18:00 -0700 Subject: Add easy way to get logging information inline for test failure diagnosis --- test/test_helper.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') diff --git a/test/test_helper.rb b/test/test_helper.rb index 114d719905..a48ac6eb9c 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -26,4 +26,8 @@ require "action_mailroom/test_helper" class ActiveSupport::TestCase include ActionMailroom::TestHelper + +if ARGV.include?("-v") + ActiveRecord::Base.logger = Logger.new(STDOUT) + ActiveJob::Base.logger = Logger.new(STDOUT) end -- cgit v1.2.3