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

             
                                         

                                        






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