2012-01-30 20:39:34 +00:00
|
|
|
# -*- encoding : utf-8 -*-
|
2012-03-29 21:34:22 +01:00
|
|
|
FactoryGirl.define do
|
|
|
|
factory :build_list do
|
|
|
|
association :user
|
|
|
|
association :project
|
|
|
|
association :pl, :factory => :platform_with_repos
|
|
|
|
association :arch
|
|
|
|
bpl {|bl| bl.pl}
|
|
|
|
project_version "1.0"
|
|
|
|
build_requires true
|
|
|
|
update_type 'security'
|
|
|
|
include_repos {|bl| bl.pl.repositories.map(&:id)}
|
|
|
|
commit_hash '1234567890abcdef1234567890abcdef12345678'
|
|
|
|
end
|
2011-12-08 18:51:25 +00:00
|
|
|
|
2012-03-29 21:34:22 +01:00
|
|
|
factory :build_list_core, :parent => :build_list do
|
|
|
|
bs_id { FactoryGirl.generate(:integer) }
|
|
|
|
end
|
2011-12-08 18:51:25 +00:00
|
|
|
end
|