aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/test_unit
diff options
context:
space:
mode:
authoryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-01-23 15:05:46 +0900
committeryuuji.yaginuma <yuuji.yaginuma@gmail.com>2017-01-24 11:05:41 +0900
commit4ed0f366892a422dd81a50ebe0552d1b8caf0d93 (patch)
tree949ac1981b2b656086134fcfe9f45ffe1b07d1a5 /railties/lib/rails/test_unit
parent2d61745af4c6f134d1ff4a07d3a702353cd06005 (diff)
downloadrails-4ed0f366892a422dd81a50ebe0552d1b8caf0d93.tar.gz
rails-4ed0f366892a422dd81a50ebe0552d1b8caf0d93.tar.bz2
rails-4ed0f366892a422dd81a50ebe0552d1b8caf0d93.zip
add warnings option to test runner
Diffstat (limited to 'railties/lib/rails/test_unit')
-rw-r--r--railties/lib/rails/test_unit/minitest_plugin.rb5
1 files changed, 5 insertions, 0 deletions
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!