Provided that I have a project factory
Factory.define :project do |p|
p.sequence(:title) { |n| \"project #{n} title\" }
p.sequence(:
There's no built in way to reset a sequence, see the source code here:
http://github.com/thoughtbot/factory_girl/blob/master/lib/factory_girl/sequence.rb
However, some people have hacked/monkey-patched this feature in. Here's an example:
http://www.pmamediagroup.com/2009/05/smarter-sequencing-in-factory-girl/