aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/commands/test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib/rails/commands/test.rb')
-rw-r--r--railties/lib/rails/commands/test.rb14
1 files changed, 1 insertions, 13 deletions
diff --git a/railties/lib/rails/commands/test.rb b/railties/lib/rails/commands/test.rb
index cd1192eb6e..1efd010dc7 100644
--- a/railties/lib/rails/commands/test.rb
+++ b/railties/lib/rails/commands/test.rb
@@ -1,19 +1,7 @@
ENV["RAILS_ENV"] = "test"
require "rails/test_unit/runner"
-require "rails/test_unit/reporter"
options = Rails::TestRunner::Options.parse(ARGV)
$: << File.expand_path("../../test", APP_PATH)
-$runner = Rails::TestRunner.new(options)
-
-def Minitest.plugin_rails_init(options)
- self.reporter << Rails::TestUnitReporter.new(options[:io], options)
- if method = $runner.find_method
- options[:filter] = method
- end
-end
-Minitest.extensions << 'rails'
-
-# Config Rails backtrace in tests.
-$runner.run
+Rails::TestRunner.new(options).run