Factory.define :book do |b| b.name { Factory.next(:name) } b.description 'Really great book about something' end Factory.sequence :name do |n| "book#{n}" end