debian-mirror-gitlab/spec/factories/users/credit_card_validations.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
354 B
Ruby
Raw Normal View History

2021-06-08 01:23:25 +05:30
# frozen_string_literal: true
FactoryBot.define do
factory :credit_card_validation, class: 'Users::CreditCardValidation' do
user
2021-12-11 22:18:48 +05:30
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' }
2021-06-08 01:23:25 +05:30
end
end