rosa-build/spec/factories/projects.rb

13 lines
317 B
Ruby

# -*- encoding : utf-8 -*-
FactoryGirl.define do
factory :project do
description { FactoryGirl.generate(:string) }
name { FactoryGirl.generate(:unixname) }
association :owner, :factory => :user
end
factory :group_project, :parent => :project do
association :owner, :factory => :group
end
end