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:
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user