Moved Cart to a sidebar location;used Ajax to invoke the LineItemsController.create() action; wrote a helper method to hide the Cart when it's empty; created test to verify line item creation & verification of the content of the response from such a request.