aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2018-09-19 16:18:00 -0700
committerDavid Heinemeier Hansson <david@loudthinking.com>2018-09-19 16:18:00 -0700
commit7143879759ff65ab585016a0a442bb49805342e2 (patch)
treea6d93162fc389481d6d733823d97537b3269ed2a /test
parentda697e84445f8f750b8a7d0fa916f429eda8aae4 (diff)
downloadrails-7143879759ff65ab585016a0a442bb49805342e2.tar.gz
rails-7143879759ff65ab585016a0a442bb49805342e2.tar.bz2
rails-7143879759ff65ab585016a0a442bb49805342e2.zip
Add easy way to get logging information inline for test failure diagnosis
Diffstat (limited to 'test')
-rw-r--r--test/test_helper.rb4
1 files changed, 4 insertions, 0 deletions
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