aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/config.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/config.rb')
-rw-r--r--activerecord/test/config.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/activerecord/test/config.rb b/activerecord/test/config.rb
index 6e2e8b2145..72cdfb16ef 100644
--- a/activerecord/test/config.rb
+++ b/activerecord/test/config.rb
@@ -1,4 +1,6 @@
-TEST_ROOT = File.expand_path(File.dirname(__FILE__))
+# frozen_string_literal: true
+
+TEST_ROOT = __dir__
ASSETS_ROOT = TEST_ROOT + "/assets"
FIXTURES_ROOT = TEST_ROOT + "/fixtures"
MIGRATIONS_ROOT = TEST_ROOT + "/migrations"