mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
2047877f4e
`Rails::LineFiltering` is not automatically loaded, need to load it explicitly. Ref:797f1dd
,b6f935b
20 lines
500 B
Ruby
20 lines
500 B
Ruby
$: << File.expand_path("test", COMPONENT_ROOT)
|
|
|
|
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.
|
|
def self.root
|
|
@root ||= Pathname.new(COMPONENT_ROOT)
|
|
end
|
|
end
|
|
|
|
ActiveSupport::TestCase.extend Rails::LineFiltering
|
|
Rails::TestUnitReporter.executable = "bin/test"
|
|
Minitest.run_via[:rails] = true
|
|
require "active_support/testing/autorun"
|