From 5790f1ee5277a0a2d2675dae7f9264292db9c64e Mon Sep 17 00:00:00 2001 From: Cory Lown Date: Mon, 26 Aug 2024 08:05:58 -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 72998b92..b47845c1 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -36,7 +36,7 @@ # Requires supporting ruby files with custom matchers and macros, etc, # in spec/support/ and its subdirectories. -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| # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures