3 ms·
My guess is that you're testing AR associations all over the place and that the business logic in your models is tightly coupled to AR associations. This has t
by grandalf 13y ago
My guess is that you're testing AR associations all over the place and that the business logic in your models is tightly coupled to AR associations. This has the effect of slowing down testing tremendously.
I try to write code so that stuff that needs to be tested is not tied to AR. Why should your logic need to wait for AR to fetch records and fire a callback when the part that is likely to break (that isn't covered by AR's test suite) is your logic, not the data fetching or callback infrastructure.