require 'spec_helper' # # describe CartItemsController do # # describe "adding to the cart" do # # before do # # end # # it "should be successful" do # Product.should_receive(:find_by_id).with("1").and_return(mock_model(Product)) # post :create, :cartable_type => "product", :cartable_id => "1" # response.should be_success # end # # # end # end