Sha256: 1418875251fee7444cbe1b35d5e854c926d02ad5adf08276bc71180327b74c58
Contents?: true
Size: 481 Bytes
Versions: 21
Compression:
Stored size: 481 Bytes
Contents
FactoryGirl.define do factory :carton, class: Spree::Carton do address stock_location shipping_method shipped_at { Time.now } 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
21 entries across 21 versions & 1 rubygems