mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
87b3e226d6
This reverts commit3420a14590
, reversing changes made toafb66a5a59
.
21 lines
512 B
Ruby
21 lines
512 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"
|
|
|
|
class << Rails
|
|
# Necessary to get rerun-snippets working.
|
|
def root
|
|
@root ||= Pathname.new(COMPONENT_ROOT)
|
|
end
|
|
alias __root root
|
|
end
|
|
|
|
ActiveSupport::TestCase.extend Rails::LineFiltering
|
|
Rails::TestUnitReporter.executable = "bin/test"
|
|
Minitest.run_via = :rails
|
|
require "active_support/testing/autorun"
|