aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2016-12-19 19:09:14 +0100
committerGitHub <noreply@github.com>2016-12-19 19:09:14 +0100
commit1655b32dcea1f7e2ed80fa25296f4001477ecf14 (patch)
tree0fb56c55ea0bc5471cb6a617f59b485948993d63 /tools
parentf5d1eb669a03ac2ca523461ae9a80f02e1ac56e8 (diff)
parent2047877f4ed31168317948a848b25a5c36f32c7b (diff)
downloadrails-1655b32dcea1f7e2ed80fa25296f4001477ecf14.tar.gz
rails-1655b32dcea1f7e2ed80fa25296f4001477ecf14.tar.bz2
rails-1655b32dcea1f7e2ed80fa25296f4001477ecf14.zip
Merge pull request #27391 from y-yagi/make_work_test_tool_with_line_filter
make work bin/test scripts with line filter
Diffstat (limited to 'tools')
-rw-r--r--tools/test.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/test.rb b/tools/test.rb
index 824ee57c96..ce546b382d 100644
--- a/tools/test.rb
+++ b/tools/test.rb
@@ -4,6 +4,8 @@ require "bundler"
Bundler.setup
require "rails/test_unit/minitest_plugin"
+require "rails/test_unit/line_filtering"
+require "active_support/test_case"
module Rails
# Necessary to get rerun-snippts working.
@@ -12,6 +14,7 @@ module Rails
end
end
+ActiveSupport::TestCase.extend Rails::LineFiltering
Rails::TestUnitReporter.executable = "bin/test"
Minitest.run_via[:rails] = true
require "active_support/testing/autorun"