What is the purpose of a `transient do` block in FactoryBot factories?
问题 What is the purpose of transient do in FactoryBot factories? I've seen a lot of factories that begin with something like below. factory :car do owner nil other_attribute nil end ... I've found some information on this blog: http://blog.thefrontiergroup.com.au/2014/12/using-factorygirl-easily-create-complex-data-sets-rails/ But I still don't fully understand how and why to do this. My experience with FactoryBot is minimal. Could anyone with some experience using FactoryBot share some insight?