2012-03-29 21:34:22 +01:00
|
|
|
FactoryGirl.define do
|
|
|
|
factory :project do
|
|
|
|
description { FactoryGirl.generate(:string) }
|
|
|
|
name { FactoryGirl.generate(:unixname) }
|
2014-01-21 04:51:49 +00:00
|
|
|
association :owner, factory: :user
|
2012-03-29 21:34:22 +01:00
|
|
|
end
|
2012-09-27 00:54:56 +01:00
|
|
|
|
2014-01-21 04:51:49 +00:00
|
|
|
factory :group_project, parent: :project do
|
|
|
|
association :owner, factory: :group
|
2012-09-27 00:54:56 +01:00
|
|
|
end
|
2012-12-18 17:53:00 +00:00
|
|
|
|
2014-01-21 04:51:49 +00:00
|
|
|
factory :project_with_commit, parent: :project do
|
2012-12-18 17:53:00 +00:00
|
|
|
after(:build) {|project| fill_project project}
|
|
|
|
end
|
2012-12-18 18:53:41 +00:00
|
|
|
|
2014-01-21 04:51:49 +00:00
|
|
|
factory :group_project_with_commit, parent: :group_project do
|
2012-12-18 18:53:41 +00:00
|
|
|
after(:build) {|project| fill_project project}
|
|
|
|
end
|
2011-11-29 14:36:51 +00:00
|
|
|
end
|