collab/factories/project_factory.rb

5 lines
99 B
Ruby

require 'factory_girl'
Factory.define :project do |f|
f.sequence(:name) {|n| "project #{n}"}
end