From 4ed0f366892a422dd81a50ebe0552d1b8caf0d93 Mon Sep 17 00:00:00 2001 From: "yuuji.yaginuma" Date: Mon, 23 Jan 2017 15:05:46 +0900 Subject: add warnings option to test runner --- railties/lib/rails/test_unit/minitest_plugin.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'railties/lib') diff --git a/railties/lib/rails/test_unit/minitest_plugin.rb b/railties/lib/rails/test_unit/minitest_plugin.rb index 6e196a32ab..e3c70b0b3d 100644 --- a/railties/lib/rails/test_unit/minitest_plugin.rb +++ b/railties/lib/rails/test_unit/minitest_plugin.rb @@ -52,6 +52,11 @@ module Minitest options[:color] = value end + opts.on("-w", "--warnings", + "Enable ruby warnings") do + $VERBOSE = true + end + options[:color] = true options[:output_inline] = true options[:patterns] = defined?(@rake_patterns) ? @rake_patterns : opts.order! -- cgit v1.2.3