blob: d836ee9567c671f157351202d6b1d2591d0adefb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
# frozen_string_literal: true
FactoryBot.define do
factory :ci_daily_build_group_report_result, class: 'Ci::DailyBuildGroupReportResult' do
ref_path { Gitlab::Git::BRANCH_REF_PREFIX + 'master' }
date { Date.current }
project
last_pipeline factory: :ci_pipeline
group_name { 'rspec' }
data do
{ 'coverage' => 77.0 }
end
default_branch { true }
trait :on_feature_branch do
ref_path { Gitlab::Git::BRANCH_REF_PREFIX + 'feature' }
default_branch { false }
end
end
end
|