Created
February 1, 2013 11:27
-
-
Save joelr/4690768 to your computer and use it in GitHub Desktop.
Random purchaser
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
cart = Cart.new | |
cart.add_product RandomProduct.find | |
puts cart.total | |
cart.pay | |
#Gives me: | |
$ ruby app.rb | |
Adding Motion Activated Flashing RGB LED Wheel Lights for Bikes and Cars (2-Pack) | |
Price 2.99 | |
Final total 2.99 | |
Checkout by Credit Card Completed |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment