From 447d5bf23374af4ea0d2f2f556829c384a7d4946 Mon Sep 17 00:00:00 2001 From: Rune Philosof <57357936+runephilosof-abtion@users.noreply.github.com> Date: Wed, 26 Jun 2024 08:08:48 +0200 Subject: [PATCH] Fix deprecation: Rails 7.1 fixture_paths (#2186) Was causing this warning: https://github.com/abtion/rails-template/actions/runs/9657664443/job/26637340275#step:10:36 > Rails 7.1 has deprecated the singular fixture_path in favour of an array.You should migrate to plural: --- spec/rails_helper.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/spec/rails_helper.rb b/spec/rails_helper.rb index 3a451f17..ad1d17e2 100644 --- a/spec/rails_helper.rb +++ b/spec/rails_helper.rb @@ -37,7 +37,9 @@ RSpec.configure do |config| # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures - config.fixture_path = Rails.root.join("spec", "fixtures") + config.fixture_paths = [ + Rails.root.join("spec", "fixtures") + ] # If you're not using ActiveRecord, or you'd prefer not to run each of your # examples within a transaction, remove the following line or assign false