summaryrefslogtreecommitdiff
path: root/spec/factories/product_cart.rb
blob: 95094dd725cfe011f8c4282bbbf0a8b4a427d36b (plain)
1
2
3
4
5
6
7
8
9
# frozen_string_literal: true

FactoryBot.define do
  factory :product_cart, class: 'ProductCart' do
    cart { create(:cart) }
    product { create(:product, available_quantity: 2000) }
    quantity { rand(1..1000) }
  end
end