rosa-build/spec/factories/build_list_factory.rb

16 lines
420 B
Ruby

Factory.define(:build_list) do |p|
p.association :user
p.association :project
p.association :pl, :factory => :platform_with_repos
p.association :arch
p.bpl {|bl| bl.pl}
p.project_version "1.0"
p.build_requires true
p.update_type 'security'
p.include_repos {|bl| bl.pl.repositories.map(&:id)}
end
Factory.define(:build_list_core, :parent => :build_list) do |p|
p.bs_id { Factory.next(:integer) }
end