make work bin/test scripts with line filter

`Rails::LineFiltering` is not automatically loaded, need to load it explicitly.
Ref: 797f1dd, b6f935b
This commit is contained in:
yuuji.yaginuma 2016-12-17 17:57:43 +09:00
parent 86ca5b2541
commit 2047877f4e

@ -4,6 +4,8 @@
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 @@ def self.root
end
end
ActiveSupport::TestCase.extend Rails::LineFiltering
Rails::TestUnitReporter.executable = "bin/test"
Minitest.run_via[:rails] = true
require "active_support/testing/autorun"