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
|
|
|
|
|
2017-06-25 13:08:26 -04:00
|
|
|
require "rails/test_unit/runner"
|
|
|
|
require "rails/test_unit/reporter"
|
2016-12-17 03:57:43 -05:00
|
|
|
require "rails/test_unit/line_filtering"
|
2017-06-25 13:08:26 -04:00
|
|
|
require "active_support"
|
2016-12-17 03:57:43 -05:00
|
|
|
require "active_support/test_case"
|
2015-06-08 08:53:26 -04:00
|
|
|
|
2017-05-26 01:52:57 -04:00
|
|
|
class << Rails
|
2017-06-20 15:50:05 -04:00
|
|
|
# Necessary to get rerun-snippets 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-06-25 13:08:26 -04:00
|
|
|
|
|
|
|
Rails::TestUnit::Runner.parse_options(ARGV)
|
|
|
|
Rails::TestUnit::Runner.run(ARGV)
|