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

Version Path
spree_sample-1.3.5 db/samples/shipments.rb
spree_sample-1.3.4 db/samples/shipments.rb
spree_sample-2.0.3 db/samples/shipments.rb
spree_sample-1.3.3 db/samples/shipments.rb
spree_sample-2.0.2 db/samples/shipments.rb
spree_sample-2.0.1 db/samples/shipments.rb
spree_sample-2.0.0 db/samples/shipments.rb
spree_sample-2.0.0.rc1 db/samples/shipments.rb