From a447ad90c4417bed69c91ff82816236932dacdd9 Mon Sep 17 00:00:00 2001 From: Henne Vogelsang Date: Mon, 2 Dec 2024 13:17:05 +0100 Subject: [PATCH] Autocorrect Rails/RootPathnameMethods --- spec/spec_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index d5330db5..71065740 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -35,7 +35,7 @@ include ERB::Util # run twice. It is recommended that you do not name files matching this glob to # end with _spec.rb. You can configure this pattern with with the --pattern # option on the command line or in ~/.rspec, .rspec or `.rspec-local`. -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| # ## Mock Framework