Sha256: 5726bd287f24876cbba5a79ee7b40180649ba8add0d1f9135fca8bfb0606f9bb
Contents?: true
Size: 640 Bytes
Versions: 8
Compression:
Stored size: 640 Bytes
Contents
first_order = Spree::Order.find_by_number!("R123456789") last_order = Spree::Order.find_by_number!("R987654321") Spree::Shipment.create!({ :order => first_order, :number => Array.new(11){rand(11)}.join, :shipping_method => Spree::ShippingMethod.find_by_name!("UPS Ground (USD)"), :address => Spree::Address.first, :state => "pending" }, :without_protection => true) Spree::Shipment.create!({ :order => last_order, :number => Array.new(11){rand(11)}.join, :shipping_method => Spree::ShippingMethod.find_by_name!("UPS Ground (USD)"), :address => Spree::Address.first, :state => "pending" }, :without_protection => true)
Version data entries
8 entries across 8 versions & 1 rubygems