diff options
Diffstat (limited to 'activerecord/bin/test')
-rwxr-xr-x | activerecord/bin/test | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/activerecord/bin/test b/activerecord/bin/test index 3a9547e5c1..9ecf27ce67 100755 --- a/activerecord/bin/test +++ b/activerecord/bin/test @@ -1,7 +1,14 @@ #!/usr/bin/env ruby +# frozen_string_literal: true + +adapter_index = ARGV.index("--adapter") || ARGV.index("-a") +if adapter_index + ARGV.delete_at(adapter_index) + ENV["ARCONN"] = ARGV.delete_at(adapter_index).strip +end COMPONENT_ROOT = File.expand_path("..", __dir__) -require File.expand_path("../tools/test", COMPONENT_ROOT) +require_relative "../../tools/test" module Minitest def self.plugin_active_record_options(opts, options) @@ -16,4 +23,5 @@ module Minitest end end +Minitest.load_plugins Minitest.extensions.unshift "active_record" |