Displaying 1 result from an estimated 1 matches for "storecontrollertest".
Did you mean:
store_controller_test
2005 Dec 23
6
Agile book - test error
...qual @version_control_book.price, cart.total_price
assert_redirected_to :action => ''display_cart''
follow_redirect
assert_equal 1, assigns(:items).size
assert_template "store/display_cart"
end
And the error n question is:
1) Error:
test_add_to_cart(StoreControllerTest):
RuntimeError: Called id for nil, which would mistakenly be 4 -- if you really
wanted the id of nil, use object_id
test/functional/store_controller_test.rb:26:in `test_add_to_cart''
Ran the command: "ruby test/unit/product_test.rb"
Checked the database table and the fixtu...