Displaying 1 result from an estimated 1 matches for "in_checkout".
Did you mean:
_checkout
2007 Oct 26
1
post_via_redirect - testing problem
I''ve got an integration test that''s failing but i can''t work out why:
Here''s the action being tested - in case anyone recognises it, it''s
based on the Depot app in Agile Web Dev with Rails.
def checkout
@in_checkout = true
#don''t let user checkout with an empty cart
if @cart.items.empty?
redirect_to_index("Your cart is empty")
else
#see if the form is being submitted, ie if it''s a POST request
if request.post?
#make a new object with the form da...