Skip to content

Instantly share code, notes, and snippets.

@baversjo
Created March 18, 2012 13:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baversjo/2072103 to your computer and use it in GitHub Desktop.
Save baversjo/2072103 to your computer and use it in GitHub Desktop.
describe LineItemsController do
describe "GET index" do
it "adds line items to @cart" do
post :create, {product_id:19, color_id:0, quantity:1}
assigns(:cart).total_items.should == 1
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment