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

11 lines
364 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_scope, class: 'Operations::FeatureFlagScope' do
2021-09-04 01:27:46 +05:30
association :feature_flag, factory: [:operations_feature_flag, :legacy_flag]
2020-11-24 15:15:51 +05:30
active { true }
strategies { [{ name: "default", parameters: {} }] }
sequence(:environment_scope) { |n| "review/patch-#{n}" }
end
end