RubyFlow The Ruby and Rails community linklog

×

The Ruby and Rails community linklog

Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!

Stubbing and Setting Expectations on HTTP Requests Is Now Easy With WebMock

Is your application making HTTP requests? Are you also tired of writing complex tests with HTTP library methods stubbed? Do you end up testing implementation of Net::HTTP or other HTTP libs instead of testing behaviour? Do you have to change your tests or specs any time you change your HTTP library, even if behaviour doesn’t change? I had the same problems so I created WebMock gem.

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in