Sha256: a2b2188f596b08b5d208b76120f038b2c409d629d639fcb85655ae14e148a4bb
Contents?: true
Size: 608 Bytes
Versions: 32
Compression:
Stored size: 608 Bytes
Contents
require 'spree/testing_support/factories/shipment_factory' require 'spree/testing_support/factories/inventory_unit_factory' FactoryGirl.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
32 entries across 32 versions & 1 rubygems