aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/bin/test
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/bin/test')
-rwxr-xr-xactiverecord/bin/test4
1 files changed, 3 insertions, 1 deletions
diff --git a/activerecord/bin/test b/activerecord/bin/test
index 822e303ad8..23add35d45 100755
--- a/activerecord/bin/test
+++ b/activerecord/bin/test
@@ -1,6 +1,8 @@
#!/usr/bin/env ruby
-COMPONENT_ROOT = File.expand_path("../../", __FILE__)
+
+COMPONENT_ROOT = File.expand_path("..", __dir__)
require File.expand_path("../tools/test", COMPONENT_ROOT)
+
module Minitest
def self.plugin_active_record_options(opts, options)
opts.separator ""