aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib/rails/commands/test.rb
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2016-09-25 19:51:46 +0200
committerKasper Timm Hansen <kaspth@gmail.com>2016-09-25 19:51:46 +0200
commit0894cb98d1019fd0c64de83129e946d188c40f07 (patch)
tree605d931ad1c24f22c23fe2468d41b26b691739c3 /railties/lib/rails/commands/test.rb
parenta8ee3a0ddce7b4af5e4fb058da250b439d0eaa3e (diff)
downloadrails-0894cb98d1019fd0c64de83129e946d188c40f07.tar.gz
rails-0894cb98d1019fd0c64de83129e946d188c40f07.tar.bz2
rails-0894cb98d1019fd0c64de83129e946d188c40f07.zip
Require `active_support/testing/autorun`.
Revise the require in the test command to use `active_support/testing/autorun` and spare us the minitest spec syntax as detailed in 5da4d51. Also move the require to the top of the file for consistency with the rest of Rails' requires across the project.
Diffstat (limited to 'railties/lib/rails/commands/test.rb')
-rw-r--r--railties/lib/rails/commands/test.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/railties/lib/rails/commands/test.rb b/railties/lib/rails/commands/test.rb
index 03884a073a..0ce2dd19b7 100644
--- a/railties/lib/rails/commands/test.rb
+++ b/railties/lib/rails/commands/test.rb
@@ -1,9 +1,8 @@
require "rails/test_unit/minitest_plugin"
+require "active_support/testing/autorun"
if defined?(ENGINE_ROOT)
$LOAD_PATH << File.expand_path("test", ENGINE_ROOT)
else
$LOAD_PATH << File.expand_path("../../test", APP_PATH)
end
-
-require "minitest/autorun"