Skip to content

Commit

Permalink
Fix sample order generator to make the new orders show up as complete
Browse files Browse the repository at this point in the history
  • Loading branch information
danabrit authored and GeekOnCoffee committed Jul 16, 2013
1 parent d5a9b85 commit 69f82a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sample/db/samples/orders.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
:billing_address => Spree::Address.last
}, :without_protection => true)
order.state = "complete"
order.completed_at = Time.now - 1.day
order.save!

order = Spree::Order.create!({
Expand All @@ -22,5 +23,6 @@
:billing_address => Spree::Address.last
}, :without_protection => true)
order.state = "complete"
order.completed_at = Time.now - 1.day
order.save!

0 comments on commit 69f82a7

Please sign in to comment.