diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2016-02-15 17:01:29 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2016-02-17 22:04:32 +0900 |
commit | 1b8fc04216099836a05a2cdfa334a28a8687251c (patch) | |
tree | 2b223637fa026ec694a5404808f0387c55b6f54c /railties/lib | |
parent | c60fb74dc6ea373bfe3d04731a2d2b6ba641f850 (diff) | |
download | rails-1b8fc04216099836a05a2cdfa334a28a8687251c.tar.gz rails-1b8fc04216099836a05a2cdfa334a28a8687251c.tar.bz2 rails-1b8fc04216099836a05a2cdfa334a28a8687251c.zip |
modify to `error` also abort when specify fail fast option
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/test_unit/minitest_plugin.rb | 2 | ||||
-rw-r--r-- | railties/lib/rails/test_unit/reporter.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/test_unit/minitest_plugin.rb b/railties/lib/rails/test_unit/minitest_plugin.rb index 29a3d991b8..03c705ffef 100644 --- a/railties/lib/rails/test_unit/minitest_plugin.rb +++ b/railties/lib/rails/test_unit/minitest_plugin.rb @@ -42,7 +42,7 @@ module Minitest end opts.on("-f", "--fail-fast", - "Abort test run on first failure") do + "Abort test run on first failure or error") do options[:fail_fast] = true end diff --git a/railties/lib/rails/test_unit/reporter.rb b/railties/lib/rails/test_unit/reporter.rb index ce99dbd585..e81bd9df7e 100644 --- a/railties/lib/rails/test_unit/reporter.rb +++ b/railties/lib/rails/test_unit/reporter.rb @@ -24,7 +24,7 @@ module Rails io.puts end - if fail_fast? && result.failure && !result.error? && !result.skipped? + if fail_fast? && result.failure && !result.skipped? raise Interrupt end end |