2015-10-06 06:01:16 -04:00
|
|
|
FactoryGirl.define do
|
|
|
|
factory :commit_status, class: CommitStatus do
|
|
|
|
name 'default'
|
|
|
|
status 'success'
|
|
|
|
description 'commit status'
|
2015-11-24 08:59:02 -05:00
|
|
|
commit factory: :ci_commit_with_one_job
|
2016-01-26 09:23:57 -05:00
|
|
|
started_at 'Tue, 26 Jan 2016 08:21:42 +0100'
|
2016-01-26 02:32:36 -05:00
|
|
|
finished_at 'Tue, 26 Jan 2016 08:23:42 +0100'
|
|
|
|
|
|
|
|
after(:build) do |build, evaluator|
|
|
|
|
build.project = build.commit.project
|
|
|
|
end
|
2015-10-06 06:01:16 -04:00
|
|
|
|
|
|
|
factory :generic_commit_status, class: GenericCommitStatus do
|
|
|
|
name 'generic'
|
|
|
|
description 'external commit status'
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|