I read / learn "agile development." Now I am in chapter 14 (testing) /
when I tried to run "@ruby -I test test / unit / product_test.rb" I have an error that
1) Error:
test_invalid_with_empty_attributes(ProductTest):
ActiveRecord::StatementInvalid: PGError: ERROR: relation "carts" does not exist
LINE 1: DELETE FROM "carts"
^
: DELETE FROM "carts"
but the cart model does not belong to "ActiveRecord"
what am I doing wrong?
(sorry for the mistakes, I'm bad in English)
source
share