diff options
author | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2016-12-17 17:57:43 +0900 |
---|---|---|
committer | yuuji.yaginuma <yuuji.yaginuma@gmail.com> | 2016-12-17 18:08:57 +0900 |
commit | 2047877f4ed31168317948a848b25a5c36f32c7b (patch) | |
tree | 7da867c7b024f8f117b6ccd1b937e18c482574ed /tools | |
parent | 86ca5b254109e64edeb6e142e656b8a8c247cac8 (diff) | |
download | rails-2047877f4ed31168317948a848b25a5c36f32c7b.tar.gz rails-2047877f4ed31168317948a848b25a5c36f32c7b.tar.bz2 rails-2047877f4ed31168317948a848b25a5c36f32c7b.zip |
make work bin/test scripts with line filter
`Rails::LineFiltering` is not automatically loaded, need to load it explicitly.
Ref: 797f1dd, b6f935b
Diffstat (limited to 'tools')
-rw-r--r-- | tools/test.rb | 3 |
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" |