From 321409ab0a0d91cf47cfec94051c423dfb3e84d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Mon, 15 Apr 2024 23:41:50 +0200 Subject: [PATCH] Use fixture_paths instead of fixture_path We were getting a warning since we upgraded to Rails 7.1: > Rails 7.1 has deprecated the singular fixture_path in favour of an > array.You should migrate to plural: --- 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 71bbaf51f..a409eb399 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -10,7 +10,7 @@ Dir["./spec/shared/**/*.rb"].sort.each { |f| require f } RSpec.configure do |config| config.use_transactional_fixtures = true - config.fixture_path = "spec/fixtures/files" + config.fixture_paths = ["spec/fixtures/files"] config.filter_run_when_matching :focus config.include RequestSpecHelper, type: :request