We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I use webmock to stub HTTP request in mechanize, but it looks like incompatible, is there any way can stub HTTP request in mechanize?
The text was updated successfully, but these errors were encountered:
@tsaohucn Any chance you were missing a header when stubbing with webmock? 🙂 The example below is compatible with mechanize.
stub_request(:get, "http://example.com").to_return( status: 200, body: "<title>The Title</title>...", headers: { "Content-Type" => "text/html" } )
Sorry, something went wrong.
No branches or pull requests
I use webmock to stub HTTP request in mechanize, but it looks like incompatible, is there any way can stub HTTP request in mechanize?
The text was updated successfully, but these errors were encountered: