Does anyone know how to reset the sequence method for FactoryGirl?
I have a factory that creates a list of tasks and I want to order to start at 1 every time. I use 'sequence' because the task list is a associated model, so I would need the order to increase every time I use FactoryGirl.create
until I call a reset.
let
block as a way to create a collection of model objects (or children of a parent model) and consistently get the same results every time. – Factory