diff options
Diffstat (limited to 'activerecord/bin/test')
-rwxr-xr-x | activerecord/bin/test | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/activerecord/bin/test b/activerecord/bin/test index 7417b068bf..83c192531e 100755 --- a/activerecord/bin/test +++ b/activerecord/bin/test @@ -1,6 +1,9 @@ #!/usr/bin/env ruby -COMPONENT_ROOT = File.expand_path("../../", __FILE__) -require File.expand_path("../tools/test", COMPONENT_ROOT) +# frozen_string_literal: true + +COMPONENT_ROOT = File.expand_path("..", __dir__) +require_relative "../../tools/test" + module Minitest def self.plugin_active_record_options(opts, options) opts.separator "" @@ -14,6 +17,4 @@ module Minitest end end -Minitest.extensions.unshift 'active_record' - -exit Minitest.run(ARGV) +Minitest.extensions.unshift "active_record" |