Creating multiple objects with Factory Girl

If you need to create more than one object from a factory, you can use the create_list method to accomplish this.

` FactoryGirl.create_list(:user, 10, :supervisor) `

Will create 10 supervisor users with the supervisor trait.

Written on March 15, 2017 by jordanneville