From 49cf16af37901682cc7148b6e4dda8db1c6e3cee Mon Sep 17 00:00:00 2001 From: Splines <37160523+Splines@users.noreply.github.com> Date: Sun, 22 Sep 2024 00:29:21 +0200 Subject: [PATCH] Apply Rails/RootPathnameMethods linting suggestion (RuboCop) (#695) --- spec/rails_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 57c66cd8d..15181ff20 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -26,7 +26,7 @@ # If you are not using ActiveRecord, you can remove this line. ActiveRecord::Migration.maintain_test_schema! -Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f } +Rails.root.glob("spec/support/**/*.rb").each { |f| require f } RSpec.configure do |config| # Include Factory Girl syntax to simplify calls to factories