Created
April 21, 2012 00:38
-
-
Save vsavkin/2432877 to your computer and use it in GitHub Desktop.
Create Order with Items
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
buyer = current_user | |
order = Order.make buyer | |
#At this moment: | |
#order.shipping_address == buyers_address | |
#order.status == :new | |
order.make_item book1, 2 | |
order.make_item book2, 3 | |
order.mark_as_ready |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment