aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/commands/test
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2016-09-25 21:34:34 +0200
committerKasper Timm Hansen <kaspth@gmail.com>2016-09-26 17:19:59 +0200
commitc0c73738bd04c86fbcf6d22c961fec0d33aa2bf6 (patch)
tree6c243d7fee4b4a47ab3aa9cb071c62a32b7bcf5a /railties/lib/rails/commands/test
parentd5457af76f8244d9069743e282ac75b7d8142db9 (diff)
downloadrails-c0c73738bd04c86fbcf6d22c961fec0d33aa2bf6.tar.gz
rails-c0c73738bd04c86fbcf6d22c961fec0d33aa2bf6.tar.bz2
rails-c0c73738bd04c86fbcf6d22c961fec0d33aa2bf6.zip
Apply test command changes.
Diffstat (limited to 'railties/lib/rails/commands/test')
-rw-r--r--railties/lib/rails/commands/test/test_command.rb4
1 files changed, 3 insertions, 1 deletions
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