2012-01-30 20:39:34 +00:00
|
|
|
# -*- encoding : utf-8 -*-
|
2011-03-17 14:47:16 +00:00
|
|
|
Factory.define(:platform) do |p|
|
2011-11-29 14:36:51 +00:00
|
|
|
p.description { Factory.next(:string) }
|
|
|
|
p.name { Factory.next(:unixname) }
|
2011-11-22 19:21:09 +00:00
|
|
|
p.platform_type 'main'
|
|
|
|
p.distrib_type APP_CONFIG['distr_types'].first
|
|
|
|
p.association :owner, :factory => :user
|
2011-11-29 14:36:51 +00:00
|
|
|
end
|
2011-12-23 02:14:28 +00:00
|
|
|
|
|
|
|
Factory.define(:platform_with_repos, :parent => :platform) do |p|
|
|
|
|
p.repositories {|r| [r.association(:repository)]}
|
2012-01-30 20:39:34 +00:00
|
|
|
end
|