[rspec-users] How to test/spec an ActiveRecord find that uses :include

Fernando Perez lists at ruby-forum.com
Wed Apr 15 11:14:01 EDT 2009

> What's wrong with hitting the database?
Actually it slows tests down like hell. I was able to ÷10 my testing 
time by not hitting the DB as much as I used to.

But I think that hitting DB for such case is acceptable.
Posted via http://www.ruby-forum.com/.

More information about the rspec-users mailing list