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

Fernando Perez lists at ruby-forum.com
Wed Apr 15 10:19:45 EDT 2009


Hi,

I was refactoring my model specs so that they don't hit the database,
but how to handle a custom find that uses :joins or :include with some
important :conditions? I can't see a way to not hit the database.

Should that spec actually belong to an integration spec?
-- 
Posted via http://www.ruby-forum.com/.


More information about the rspec-users mailing list