rails--rails/tools/test.rb

18 lines
372 B
Ruby

$: << File.expand_path("test", COMPONENT_ROOT)
require "bundler"
Bundler.setup
require "rails/test_unit/minitest_plugin"
module Rails
# Necessary to get rerun-snippts working.
def self.root
@root ||= Pathname.new(COMPONENT_ROOT)
end
end
Rails::TestUnitReporter.executable = "bin/test"
Minitest.run_via[:rails] = true
require "active_support/testing/autorun"