From 1487fcde93fece43ea786faade93d3dfaa393e67 Mon Sep 17 00:00:00 2001
From: Nick Schonning <nschonni@gmail.com>
Date: Wed, 8 Feb 2023 01:06:20 -0500
Subject: [PATCH] Apply Rubocop Style/ExpandPathArguments (#23450)

---
 config.ru            | 2 +-
 spec/rails_helper.rb | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/config.ru b/config.ru
index 3476455ef3..d7295e4767 100644
--- a/config.ru
+++ b/config.ru
@@ -1,5 +1,5 @@
 # frozen_string_literal: true
 # This file is used by Rack-based servers to start the application.
 
-require ::File.expand_path('../config/environment', __FILE__)
+require ::File.expand_path('config/environment', __dir__)
 run Rails.application
diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb
index 02827a3886..c197bc0075 100644
--- a/spec/rails_helper.rb
+++ b/spec/rails_helper.rb
@@ -1,5 +1,5 @@
 ENV['RAILS_ENV'] ||= 'test'
-require File.expand_path('../../config/environment', __FILE__)
+require File.expand_path('../config/environment', __dir__)
 
 abort("The Rails environment is running in production mode!") if Rails.env.production?
 
-- 
GitLab