2011-11-22 19:21:09 +00:00
|
|
|
Factory.define(:build_list) do |p|
|
2011-12-23 02:14:28 +00:00
|
|
|
p.association :user
|
|
|
|
p.association :project
|
|
|
|
p.association :pl, :factory => :platform_with_repos
|
|
|
|
p.association :arch
|
|
|
|
p.bpl {|bl| bl.pl}
|
2011-11-22 19:21:09 +00:00
|
|
|
p.project_version "1.0"
|
|
|
|
p.build_requires true
|
|
|
|
p.update_type 'security'
|
2011-12-23 02:14:28 +00:00
|
|
|
p.include_repos {|bl| bl.pl.repositories.map(&:id)}
|
2012-01-17 17:37:41 +00:00
|
|
|
p.commit_hash '1234567890abcdef1234567890abcdef12345678'
|
2011-12-08 18:51:25 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
Factory.define(:build_list_core, :parent => :build_list) do |p|
|
|
|
|
p.bs_id { Factory.next(:integer) }
|
|
|
|
end
|