Sha256: 65cacf51ce548db0875ee29245f184e21a14d13df72a276f470e82d66b338157

Contents?: true

Size: 685 Bytes

Versions: 6

Compression:

Stored size: 685 Bytes

Contents

Spree::Sample.load_sample("addresses")

order = Spree::Order.create!({
  :number => "R123456789",
  :email => "spree@example.com",
  :item_total => 150.95,
  :adjustment_total => 150.95,
  :total => 301.90,
  :shipping_address => Spree::Address.first,
  :billing_address => Spree::Address.last
}, :without_protection => true)
order.state = "complete"
order.save!

order = Spree::Order.create!({
  :number => "R987654321",
  :email => "spree@example.com",
  :item_total => 15.95,
  :adjustment_total => 15.95,
  :total => 31.90,
  :shipping_address => Spree::Address.first,
  :billing_address => Spree::Address.last
}, :without_protection => true)
order.state = "complete"
order.save!

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spree_sample-2.0.3 db/samples/orders.rb
spree_sample-1.3.3 db/samples/orders.rb
spree_sample-2.0.2 db/samples/orders.rb
spree_sample-2.0.1 db/samples/orders.rb
spree_sample-2.0.0 db/samples/orders.rb
spree_sample-2.0.0.rc1 db/samples/orders.rb