2015-06-08 08:53:26 -04:00
|
|
|
$: << File.expand_path("test", COMPONENT_ROOT)
|
2016-03-01 23:49:08 -05:00
|
|
|
|
2016-08-06 13:22:51 -04:00
|
|
|
require "bundler"
|
2016-03-01 23:49:08 -05:00
|
|
|
Bundler.setup
|
|
|
|
|
2015-06-08 08:53:26 -04:00
|
|
|
require "rails/test_unit/minitest_plugin"
|
2016-12-17 03:57:43 -05:00
|
|
|
require "rails/test_unit/line_filtering"
|
|
|
|
require "active_support/test_case"
|
2015-06-08 08:53:26 -04:00
|
|
|
|
|
|
|
module Rails
|
|
|
|
# Necessary to get rerun-snippts working.
|
|
|
|
def self.root
|
|
|
|
@root ||= Pathname.new(COMPONENT_ROOT)
|
|
|
|
end
|
|
|
|
end
|
2015-06-13 05:56:32 -04:00
|
|
|
|
2016-12-17 03:57:43 -05:00
|
|
|
ActiveSupport::TestCase.extend Rails::LineFiltering
|
2015-06-13 05:56:32 -04:00
|
|
|
Rails::TestUnitReporter.executable = "bin/test"
|
2016-11-21 11:24:10 -05:00
|
|
|
Minitest.run_via[:rails] = true
|
|
|
|
require "active_support/testing/autorun"
|