From 2dc73584090d296a23d735e592bea1e493268992 Mon Sep 17 00:00:00 2001 From: Cory Lown Date: Mon, 26 Aug 2024 07:59:54 -0400 Subject: [PATCH] Rubocop autocorrect Rails/RootPathnameMethods offense --- 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 3a8f7b7..537a62d 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -27,7 +27,7 @@ # directory. Alternatively, in the individual `*_spec.rb` files, manually # require only the support files necessary. # -Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f } +Rails.root.glob('spec/support/**/*.rb').each { |f| require f } # Checks for pending migrations and applies them before tests are run. # If you are not using ActiveRecord, you can remove this line.