An acceptable quantity of products is added to cart

This commit is contained in:
Rob H
2014-03-12 17:12:49 +11:00
parent bed1c171b6
commit 9230bce6bb

View File

@@ -257,7 +257,6 @@ def select_order_cycle
end
def add_product_to_cart
fill_in "variants[#{product.master.id}]", with: 5
fill_in "variants[#{product.master.id}]", with: product.master.on_hand - 1
first("form.custom > input.button.right").click
end