mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
26 lines
606 B
Ruby
26 lines
606 B
Ruby
# frozen_string_literal: true
|
|
|
|
$: << File.expand_path("test", COMPONENT_ROOT)
|
|
|
|
require "bundler"
|
|
Bundler.setup
|
|
|
|
require "rails/test_unit/runner"
|
|
require "rails/test_unit/reporter"
|
|
require "rails/test_unit/line_filtering"
|
|
require "active_support"
|
|
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"
|
|
|
|
Rails::TestUnit::Runner.parse_options(ARGV)
|
|
Rails::TestUnit::Runner.run(ARGV)
|