Sha256: 33adbe57ff6e2b2629b2301de823c3a3cef73383a911a85e5ccbbebfc30618d0
Contents?: true
Size: 1.99 KB
Versions: 2
Compression:
Stored size: 1.99 KB
Contents
Feature: Shopping Cart Background: Given a product "Apple" exists And a shopping cart exists Scenario: Cart totals When I add product "Apple" to cart with price "99.99" Then the subtotal for the cart should be "99.99" And the total for the cart should be "108.24" And the total unique items on the cart should be "1" Scenario: Add a product to cart twice When I add product "Apple" to cart with price "99.99" And I add product "Apple" to cart with price "99.99" Then the subtotal for the cart should be "199.98" Then the total for the cart should be "216.48" And the total unique items on the cart should be "2" Scenario: Remove products from cart Given I add 3 "Apple" products to cart with price "99.99" When I remove 1 "Apple" unit from cart Then the total unique items on the cart should be "2" When I remove 99 "Apple" units from cart Then the total unique items on the cart should be "0" And cart should be empty Scenario: Totals for a single item Given I add 3 "Apple" products to cart with price "99.99" Then the subtotal for "Apple" on the cart should be "299.97" And the quantity for "Apple" on the cart should be "3" And the price for "Apple" on the cart should be "99.99" Scenario: Subtotal for a product that is not on cart Then the subtotal for "Apple" on the cart should be "0" Scenario: Update the quantity of a cart item Given I add 99 "Apple" products to cart with price "99.99" When I update the "Apple" quantity to "2" Then the quantity for "Apple" on the cart should be "2" Scenario: Update the price of a cart item Given I add 99 "Apple" products to cart with price "99.99" When I update the "Apple" price to "10.99" Then the price for "Apple" on the cart should be "10.99" Scenario: Empty the shopping cart Given I add 99 "Apple" products to cart with price "99.99" When I empty the cart Then cart should be empty And the total for the cart should be "0"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
acts_as_shopping_cart-0.1.3 | features/shopping_cart.feature |
acts_as_shopping_cart-0.1.2 | features/shopping_cart.feature |