From 77c60920a28d2c93812694630cd21890d686039d Mon Sep 17 00:00:00 2001 From: Pascal Zumkehr Date: Wed, 6 Dec 2023 21:48:31 +0100 Subject: [PATCH] Update to latest version of rspec-rails --- Rakefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Rakefile b/Rakefile index f091401..2b578c0 100644 --- a/Rakefile +++ b/Rakefile @@ -69,8 +69,8 @@ namespace :test do "require 'simplecov'\nSimpleCov.start do\n" + " coverage_dir 'coverage/spec'\nend\n") file_replace(File.join(TEST_APP_ROOT, 'spec', 'rails_helper.rb'), - "# Dir[Rails.root.join('spec', 'support', '**', '*.rb')].sort.each { |f| require f }", - "Dir[Rails.root.join('spec', 'support', '**', '*.rb')].sort.each { |f| require f }") + "# Rails.root.glob('spec/support/**/*.rb').sort.each { |f| require f }", + "Rails.root.glob('spec/support/**/*.rb').sort.each { |f| require f }") end end