small medium large xlarge

Avatar_pragsmall
02 Dec 2017, 04:35
Dong.Xu (6 posts)

In the book, it said

“The fixtures() directive loads the fixture data corresponding to the given model name into the corresponding database table before each test method in the test case is run.”.

But after I remove the code fixtures :products, all tests still working.

Also, the default generated test in products_controller_test.rb, it used products(:one) without fixtures :products.

You must be logged in to comment