mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
82ab903653
This was failing when other files also required `bundler/setup` because bundler were being setup twice.
18 lines
503 B
Ruby
18 lines
503 B
Ruby
# frozen_string_literal: true
|
|
|
|
$: << File.expand_path("test", COMPONENT_ROOT)
|
|
|
|
require "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"
|
|
|
|
ActiveSupport::TestCase.extend Rails::LineFiltering
|
|
Rails::TestUnitReporter.app_root = COMPONENT_ROOT
|
|
Rails::TestUnitReporter.executable = "bin/test"
|
|
|
|
Rails::TestUnit::Runner.parse_options(ARGV)
|
|
Rails::TestUnit::Runner.run(ARGV)
|