Delete index file in Public folder it is not necessary
All error has been resolved

line 46 in line_item_controller_test.rb file was the problem.

sould be "@line_item = @cart.line_items.build(:product_id => product.id)" Not follow textbook.

Think that controller didn't give attriute that is product, was product_id!!!