I keep getting 2 errors for the code on page 81. I’ve compared my code with the books code and they both are the same. What is the difference between Fail and Error and can I go ahead in the book? Or will these errors just cause more pain ‘down the road’. Here is part of the part I am getting:
test_should_update_product ERROR unknown attribute: prices STDERR:
ActiveRecord::UnknownAttributeError' at '...active_record/base.rb:1747:in block in assign_attributes’
test_should_create_product is the other error. Both of them I added @update variable to so it might be something to do with that?
========================================================= pass: 5, fail: 0, error: 2 total: 7 tests with 7 assertions in 0.828588909 seconds =========================================================