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

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

FactoryBot.define do
  factory :credit_card_validation, class: 'Users::CreditCardValidation' do
    user
    sequence(:credit_card_validated_at) { |n| Time.current + n }
    expiration_date { 1.year.from_now.end_of_month }
    last_digits { 10 }
    holder_name { 'John Smith' }
    network { 'AmericanExpress' }
  end
end