You can create a list like this (hence create x objects at once):
FactoryBot.create_list(:model_1, 3)
Documentation lives here.
Note: FactoryBot was originally named FactoryGirl
You can create a list like this (hence create x objects at once):
FactoryBot.create_list(:model_1, 3)
Documentation lives here.
Note: FactoryBot was originally named FactoryGirl