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

segment_selections.rb « devops_adoption « analytics « factories « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 8f10369ba3583f42f0ab60d18ccf2fc5bb0fbbd2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# frozen_string_literal: true

FactoryBot.define do
  factory :devops_adoption_segment_selection, class: 'Analytics::DevopsAdoption::SegmentSelection' do
    association :segment, factory: :devops_adoption_segment
    project

    trait :project do
      group { nil }
      project
    end

    trait :group do
      project { nil }
      group
    end
  end
end