I am using isolated tests for all my classes except for models and feature’s specs. I do it because it’s fast. I do 444 specs in 30 seconds. I see all learn.thoughtbot’s specs are made with integration tests.
I think isolated tests are fasts but integration tests are simple.
What is you opinion on this subject. Do you prefer integration or isolation?
Integration tests are slow because it hit the database. I think a way to avoid the hit of database can be the best of both world. Is there a way to do this?