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

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

FactoryBot.define do
  factory :phone_number_validation, class: 'Users::PhoneNumberValidation' do
    user
    country { 'US' }
    international_dial_code { 1 }
    phone_number { '555' }
    telesign_reference_xid { FFaker::Guid.guid }

    trait(:validated) do
      validated_at { Time.zone.now }
    end
  end
end