Rails Testing
Rails Testing
I have often been told and red not to test the database. To avoid useless round trips and that my tests should be testing the code, not the database. That is the key to fast testing. But how fast exactly does this change? I took it upon myself to figure it out. I wanted to know the affects of slow vs fast testing and measure it.
Slow tests often come from round trip to the database. I decided to measure the performance impact using a gem I generally use for testing: FactoryGirl
»