Hey there, I’m not really great at testing but I’m determined to figure this out. When I run rake test:functionals I am receiving the following error:
1) Error: test_should_destroy_product(ProductsControllerTest): NameError: undefined local variable or method `line_item' for #<Product:0xb8f1028> ... 22 tests, 33 assertions, 0 failures, 1 errors, 0 skips Test run options: --seed 11463 rake aborted! Command failed with status (1):
and I just worked through Chapter 10. I checked my code to the source code available from the PragProg side and can’t narrow down as to what is happening. The destroy test and its counter part in the Products Controller look the same as the book source. I don’t see any allusion to line_item in my code or the book source nor understand where that is coming from.
Any thoughts? Any other information I can supply?