3 ms·
That seems like more of an argument against mocking in general. Even if you DI you are still expecting X method to be called on the mock object and have created
by phamilton 11y ago
That seems like more of an argument against mocking in general. Even if you DI you are still expecting X method to be called on the mock object and have created that coupling.
I think DHH describes a great example that illustrates a big difference in philosophy around this: http://david.heinemeierhansson.com/2012/dependency-injection-is-not-a-virtue.html http://david.heinemeierhansson.com/2012/dependency-injection...