webmock

https://github.com/bblimke/webmock

Ruby

Library for stubbing and setting expectations on HTTP requests in Ruby.

WebMock::RequestStub#to_return_json

No Docs, write some!

Source | Google | Stack overflow

Edit

git clone [email protected]:bblimke/webmock.git

cd webmock

open lib/webmock/request_stub.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-WebMock--RequestStub-to_return_json-for-pr


# Commit to git

git add lib/webmock/request_stub.rbgit commit -m "better docs for WebMock::RequestStub#to_return_json"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-WebMock--RequestStub-to_return_json-for-pr

hub pull-request


# Celebrate!