Welcome to mirror list, hosted at ThFree Co, Russian Federation.

user_custom_attributes.rb « factories « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: c068da9a39fc7a29efa673fd6e734be6f6457858 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

FactoryBot.define do
  factory :user_custom_attribute do
    user
    sequence(:key) { |n| "key#{n}" }
    sequence(:value) { |n| "value#{n}" }

    trait :assumed_high_risk_reason do
      key { UserCustomAttribute::ASSUMED_HIGH_RISK_REASON }
      value { 'reason' }
    end
  end
end