From 433cb2b5bf4349e8a223afad9a79ff82e9db0881 Mon Sep 17 00:00:00 2001 From: Ed Summers Date: Mon, 26 Aug 2024 09:32:36 -0400 Subject: [PATCH] fix Rails/RootPathnameMethods linting error --- 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 6f1f14f69..51070fd72 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -10,7 +10,7 @@ # Add additional requires below this line. Rails is not loaded until this point! # auto-require all ruby files in the support directory -Dir[Rails.root.join('spec', 'support', '*.rb')].each { |f| require f } +Rails.root.glob('spec/support/*.rb').each { |f| require f } require 'view_component/test_helpers' require 'capybara/rspec'