rails/tools/test.rb
Prathamesh Sonpatki ea491653cc Remove requiring load_paths from tools/test.rb
- Instead require and setup Bundler
- `tools/test.rb` is used internally from all `bin/test` scripts inside
   component gems.
- Followup of 2abcdfd978.
2016-03-02 10:28:34 +05:30

16 lines
299 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"