diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 4bec5290..5b79e4b7 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -61,8 +61,11 @@ def fail(msg) config.mock_with :rspec - # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures - config.fixture_path = "#{Rails.root}/spec/fixtures" + if Rails.version >= "7.1" + config.fixture_paths = ["#{::Rails.root}/spec/fixtures"] + else + config.fixture_path = "#{::Rails.root}/spec/fixtures" + end # 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