Sha256: 9b5f9b46679e7184c990652ce0be68029320bfb87231ec7fe8332b4d25129f87
Contents?: true
Size: 580 Bytes
Versions: 4
Compression:
Stored size: 580 Bytes
Contents
FactoryGirl.define do factory :shipment, class: Spree::Shipment do tracking 'U10000' cost 100.00 state 'pending' order stock_location after(:create) do |shipment, _evalulator| shipment.add_shipping_method(create(:shipping_method), true) shipment.order.line_items.each do |line_item| line_item.quantity.times do shipment.inventory_units.create( order_id: shipment.order_id, variant_id: line_item.variant_id, line_item_id: line_item.id ) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems