gitlab-org--gitlab-foss/spec/factories/users/credit_card_validations.rb

12 lines
354 B
Ruby

# 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