Creating test setup using FactoryBot Factories
Further reading:
Why Factories:
https://thoughtbot.com/blog/why-factories
Factories should be the bare minimum:
https://thoughtbot.com/blog/factories-should-be-the-bare-minimum
Speed up tests by selectively avoiding FactoryBot:
https://thoughtbot.com/blog/speed-up-tests-by-selectively-avoiding-factory-girl
Remove duplication with FactoryBot's traits:
https://thoughtbot.com/blog/remove-duplication-with-factorygirls-traits