summaryrefslogtreecommitdiff
path: root/spec/factories/operations/feature_flag_scopes.rb
blob: 4ca9b53f320428eceeefac44b3a8389f84c6eb6e (plain)
1
2
3
4
5
6
7
8
9
10
# frozen_string_literal: true

FactoryBot.define do
  factory :operations_feature_flag_scope, class: 'Operations::FeatureFlagScope' do
    association :feature_flag, factory: [:operations_feature_flag, :legacy_flag]
    active { true }
    strategies { [{ name: "default", parameters: {} }] }
    sequence(:environment_scope) { |n| "review/patch-#{n}" }
  end
end