From b5082009ced68a8c3af8ff114ad3ba3e1893d068 Mon Sep 17 00:00:00 2001 From: Rohan Mitchell Date: Sun, 24 Jun 2012 12:13:13 +1000 Subject: [PATCH] Add pending specs for adding products to cart with distributor --- spec/requests/consumer/add_to_cart_spec.rb | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 spec/requests/consumer/add_to_cart_spec.rb diff --git a/spec/requests/consumer/add_to_cart_spec.rb b/spec/requests/consumer/add_to_cart_spec.rb new file mode 100644 index 0000000000..fe9043d9fa --- /dev/null +++ b/spec/requests/consumer/add_to_cart_spec.rb @@ -0,0 +1,34 @@ +require 'spec_helper' + +feature %q{ + As a consumer + I want to choose a distributor when adding products to my cart + So that I can avoid making an order from many different distributors +} do + include AuthenticationWorkflow + include WebHelper + + context "adding the first product to the cart" do + it "requires the user choose a distributor" do + # Tested in orders_controller_spec.rb + end + + it "sets the order's distributor" + it "sets the user's distributor when adding a product at a remote distributor" + end + + it "does not allow the user to change distributor after a product has been added to the cart" + + context "adding a subsequent product to the cart" do + it "does not allow the user to choose a distributor" do + # Instead, they see "Your distributor for this order is XYZ" + pending + end + + it "does not allow the user to add a product from another distributor" do + # No add to cart button + # They see "Please complete your order at XYZ before shopping with another distributor." + pending + end + end +end