Sha256: ab2ba5b5e6cfec521b8a2cc321cbe1614e2e4a99fa28f79544c6a605d42774d0
Contents?: true
Size: 515 Bytes
Versions: 24
Compression:
Stored size: 515 Bytes
Contents
# frozen_string_literal: true FactoryBot.define do factory :carton, class: 'Spree::Carton' do address stock_location shipping_method shipped_at { Time.current } inventory_units do [ build( :inventory_unit, # ensure the shipment uses the same stock location as the carton shipment: build( :shipment, stock_location: stock_location, shipping_method: shipping_method ) ) ] end end end
Version data entries
24 entries across 24 versions & 1 rubygems