RSpec.configure do |config|
  config.include FactoryBot::Syntax::Methods
end

FactoryBot.use_parent_strategy = true

RSpec.configure do |config|
  config.include FactoryBot::Syntax::Methods
end

Use parent strategy for factories
Use parent strategy for factories

Setting FactoryBot.use_parent_strategy = true allows objects made with
the build strategy to use build instead of create for any
associations. Using this setting will generally reduce the number of
calls to `create`, and makes `build` generally
[a little faster](https://gist.github.com/composerinteralia/d4796df9140f431e36f88dfb6fe9733a)
than `build_stubbed`.
