gitlab-org--gitlab-foss/spec/factories/operations/feature_flags.rb

17 lines
426 B
Ruby

# frozen_string_literal: true
FactoryBot.define do
factory :operations_feature_flag, class: 'Operations::FeatureFlag' do
sequence(:name) { |n| "feature_flag_#{n}" }
project
active { true }
trait :legacy_flag do
version { Operations::FeatureFlag.versions['legacy_flag'] }
end
trait :new_version_flag do
version { Operations::FeatureFlag.versions['new_version_flag'] }
end
end
end