aboutsummaryrefslogtreecommitdiffstats
path: root/railties/test/code_statistics_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'railties/test/code_statistics_test.rb')
-rw-r--r--railties/test/code_statistics_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/test/code_statistics_test.rb b/railties/test/code_statistics_test.rb
index 965b6eeb79..e6e3943117 100644
--- a/railties/test/code_statistics_test.rb
+++ b/railties/test/code_statistics_test.rb
@@ -3,7 +3,7 @@ require "rails/code_statistics"
class CodeStatisticsTest < ActiveSupport::TestCase
def setup
- @tmp_path = File.expand_path(File.join(File.dirname(__FILE__), "fixtures", "tmp"))
+ @tmp_path = File.expand_path("fixtures/tmp", __dir__)
@dir_js = File.join(@tmp_path, "lib.js")
FileUtils.mkdir_p(@dir_js)
end