Sha256: 688248adcf4f843b75224a76b7e23a766001234b85816f079667765717ca415b
Contents?: true
Size: 357 Bytes
Versions: 33
Compression:
Stored size: 357 Bytes
Contents
FactoryBot.define do factory :line_item, class: Spree::LineItem do order quantity { 1 } price { BigDecimal('10.00') } currency { order.currency } product do if order&.store&.present? create(:product, stores: [order.store]) else create(:product) end end variant { product.master } end end
Version data entries
33 entries across 33 versions & 1 rubygems