mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
f38a660a60
When executing the test via rake, since `rake` is set for `run_via`, `ruby` should not be set.
Related 2cb6c27310
20 lines
494 B
Ruby
20 lines
494 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
|
|
require "active_support/testing/autorun"
|