` test “should create product” do assert_difference(‘Product.count’ ) do post :create, :product => @update end
Always causes this error:
1) Failure: test_should_create_product(ProductsControllerTest) [depot/test/functional/products_controller_test.rb:35]: “Product.count” didn’t change by 1. <3> expected but was <2>.
I have looked at the test.log and it seems to be posting the correct information and the system responds without an error.