Marnen Laibow-Koser wrote:

> Yes.  Mock everything that isn't what you're trying to test.

Absolutely false. Mock almost nothing - the clock, the wire out of your 
workstation, and system errors.

Everything else should be so clean and decoupled that you can use it as stubs 
without mocking it. Mocks just tell your tests what they think they want to 
hear, and the mocks interfere with refactoring and decoupling.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to