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
|
|
|
|
2017-05-26 01:52:57 -04:00
|
|
|
class << Rails
|
2015-06-08 08:53:26 -04:00
|
|
|
# Necessary to get rerun-snippts working.
|
2017-05-26 01:52:57 -04:00
|
|
|
def root
|
2015-06-08 08:53:26 -04:00
|
|
|
@root ||= Pathname.new(COMPONENT_ROOT)
|
|
|
|
end
|
2017-05-26 01:52:57 -04:00
|
|
|
alias __root root
|
2015-06-08 08:53:26 -04:00
|
|
|
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"
|
2017-02-08 04:24:50 -05:00
|
|
|
Minitest.run_via = :rails
|
2016-11-21 11:24:10 -05:00
|
|
|
require "active_support/testing/autorun"
|