Welcome to mirror list, hosted at ThFree Co, Russian Federation.

daily_build_group_report_results.rb « ci « factories « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 55f4f116c973144c6ad3ae5f033310a74c99e984 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# 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' }
    group
    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