aboutsummaryrefslogblamecommitdiffstats
path: root/tools/test.rb
blob: 1a1eca8f95662e201d461728f3197c30b33cf7cd (plain) (tree)
1
2
3
4
5
6
7
8
9
                                              
 
                 

             
                                         

                                        
 
              
                                           
          

                                          
                   
   
 
                                                   
                                               
                         
                                        
$: << 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"

class << Rails
  # Necessary to get rerun-snippts 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"