Sha256: 4c6b634bd71bb8e3ca6fbf787d2203549626fe49ad4d500600a89448fa6eb35c
Contents?: true
Size: 288 Bytes
Versions: 24
Compression:
Stored size: 288 Bytes
Contents
# frozen_string_literal: true FactoryBot.define do factory :line_item, class: 'Spree::LineItem' do quantity { 1 } price { BigDecimal('10.00') } order transient do product { nil } end variant do (product || create(:product)).master end end end
Version data entries
24 entries across 24 versions & 1 rubygems