aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/bin/test
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/bin/test')
-rwxr-xr-xactiverecord/bin/test6
1 files changed, 4 insertions, 2 deletions
diff --git a/activerecord/bin/test b/activerecord/bin/test
index 7417b068bf..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 ""
@@ -14,6 +16,6 @@ module Minitest
end
end
-Minitest.extensions.unshift 'active_record'
+Minitest.extensions.unshift "active_record"
exit Minitest.run(ARGV)