2012-01-30 20:39:34 +00:00
|
|
|
# -*- encoding : utf-8 -*-
|
2012-03-29 21:34:22 +01:00
|
|
|
FactoryGirl.define do
|
|
|
|
factory :project do
|
|
|
|
description { FactoryGirl.generate(:string) }
|
|
|
|
name { FactoryGirl.generate(:unixname) }
|
|
|
|
association :owner, :factory => :user
|
|
|
|
end
|
2012-09-27 00:54:56 +01:00
|
|
|
|
|
|
|
factory :group_project, :parent => :project do
|
|
|
|
association :owner, :factory => :group
|
|
|
|
end
|
2012-12-18 17:53:00 +00:00
|
|
|
|
|
|
|
factory :project_with_commit, :parent => :project do
|
|
|
|
after(:build) {|project| fill_project project}
|
|
|
|
end
|
2011-11-29 14:36:51 +00:00
|
|
|
end
|