From c0c73738bd04c86fbcf6d22c961fec0d33aa2bf6 Mon Sep 17 00:00:00 2001 From: Kasper Timm Hansen Date: Sun, 25 Sep 2016 21:34:34 +0200 Subject: Apply test command changes. --- railties/lib/rails/commands/test/test_command.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'railties/lib/rails/commands/test') diff --git a/railties/lib/rails/commands/test/test_command.rb b/railties/lib/rails/commands/test/test_command.rb index 395edca933..1b2e3af9cc 100644 --- a/railties/lib/rails/commands/test/test_command.rb +++ b/railties/lib/rails/commands/test/test_command.rb @@ -11,7 +11,9 @@ module Rails def perform(*) $LOAD_PATH << Rails::Command.root.join("test") - exit Minitest.run(ARGV) + Minitest.run_via[:rails] = true + + require "active_support/testing/autorun" end end end -- cgit v1.2.3