Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Mocking HTTP requests #18
I wrote a brief presentation on testing with Webmock and VCR; it's at http://marnen.github.com/webmock-presentation/webmock.html . Feel free to include a link if it's useful.
@dchelimsky The terminology is kind of unfortunate. "Mock object" really should have meant any test double, IMHO, but the term got appropriated for one particular type. You're right that a lot of HTTP mocking is more like stubbing.
However...as I think about it, I realize that WebMock may be more like a true mock. If you use
None of this really has any bearing on the test practice itself. But the argument is interesting. :)
referenced this issue
Nov 25, 2012
I think you should also change the description from "Sometimes you need to access external services. In these cases you can't rely on the real service but you should mock it with solutions like webmock." to "Sometimes you need to access external services. In these cases you can't rely on the real service but you should stub it with solutions like webmock."
Right now I'm working on different project and would be great if you could
Thanks a lot Hunter.
On Mon, Mar 16, 2015 at 6:12 PM, Hunter Stevens email@example.com