spec/spec_helper.rb in apipie-rails-1.4.1 vs spec/spec_helper.rb in apipie-rails-1.4.2
- old
+ new
@@ -59,11 +59,14 @@
RSpec.configure do |config|
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
# instead of true.
config.use_transactional_fixtures = true