factory_bot is a Ruby gem that allows you to quickly define prototypes for each of your models and ask for instances with properties that are important to the test at hand.
factory_bot (formerly factory_girl) is a Ruby gem which is replacement for Rails fixtures. It is used to construct test data. It supports multiple build strategies (create, build, attribute hashes) and associations.
If you want to use factory_bot with Rails, use the factory_bot_rails gem.