blog-post-everything-wrong-with-bdd-rspec-and-mocking

http://ngauthier.com/2010/12/everything-that-is-wrong-with-mocking.html

blog-post-everything-wrong-with-bdd-rspec-and-mocking#david-chelimsky-comment-about-wrapper-around-third-party-api1 "Mocking external dependencies is actually considered to be a mocking no-no, because then you create a binding between your app and the external dependency's API. Instead, write a thin wrapper around that dependency that speaks in the domain of your app, and mock that as a means of isolating your app's code/specs from that dependency. blog-post-everything-wrong-with-bdd-rspec-and-mocking#david-chelimsky-comment-about-wrapper-around-third-party-api1

Referring Pages

testing-concept-overmocking testing-concept-make-adapter-for-external-services

People

person-david-chelimsky person-nick-gauthier