Sha256: 6e2b5670818c83ce86d67ef754dc127900b6fa9fd683ce069299eb8f8fbb3677

Contents?: true

Size: 285 Bytes

Versions: 3

Compression:

Stored size: 285 Bytes

Contents

FactoryBot.define do
  factory :shoppy_cartus_credit_card, class: 'ShoppyCartus::CreditCard' do
    number { 16.times.map { rand(10) }.join }
    cvv { rand(111..9999) }
    expiration_date { "#{rand(10..99)}/#{rand(10..99)}" }
    card_name { FFaker::Internet.domain_word }
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
shoppy_cartus-0.1.2 spec/factories/shoppy_cartus/shoppy_cartus_credit_cards.rb
shoppy_cartus-0.1.1 spec/factories/shoppy_cartus/shoppy_cartus_credit_cards.rb
shoppy_cartus-0.1.0 spec/factories/shoppy_cartus/shoppy_cartus_credit_cards.rb