debian-mirror-gitlab/spec/factories/operations/feature_flags.rb
2020-11-24 15:15:51 +05:30

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