debian-mirror-gitlab/spec/factories/operations/feature_flags.rb

18 lines
426 B
Ruby
Raw Normal View History

2020-11-24 15:15:51 +05:30
# 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