diff options
Diffstat (limited to 'tools/test.rb')
-rw-r--r-- | tools/test.rb | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/tools/test.rb b/tools/test.rb index 71349a5974..774e4ec6c7 100644 --- a/tools/test.rb +++ b/tools/test.rb @@ -3,18 +3,22 @@ $: << File.expand_path("test", COMPONENT_ROOT) require "bundler" Bundler.setup -require "rails/test_unit/minitest_plugin" +require "rails/test_unit/runner" +require "rails/test_unit/reporter" require "rails/test_unit/line_filtering" +require "active_support" require "active_support/test_case" -module Rails - # Necessary to get rerun-snippts working. - def self.root +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" + +Rails::TestUnit::Runner.parse_options(ARGV) +Rails::TestUnit::Runner.run(ARGV) |