Getting Started with Testing Data
Learn about test data, fixtures performance, and factories performance.
We'll cover the following...
Test data
Creating test data sounds like it should be the easiest thing ever. We already have ActiveRecord#create
. We might ask ourselves, isn’t that enough? Not quite. To be useful, the data we generate for the tests needs to support the goals of testing. We should be able to create the data quickly and easily, both in ...