Monday, April 09, 2012

Rails Recipes 3rd Edition

The recipe: Focus Your Tests with Mocking and Stubbing show how to use stubs and mocks. It violates one of the testing best practices. DO NOT mock external services. Why? Because you cannot drive the design of a third party library. For a good discussion on this topic read the "Growing Object Oriented Software Guided by Tests".

I scanned through the book, I was a bit disappointed. Lot of the recipes are just from the old book.