webmock
https://github.com/bblimke/webmock
Ruby
Library for stubbing and setting expectations on HTTP requests in Ruby.
WebMock::API#hash_including
Similar to RSpec::Mocks::ArgumentMatchers#hash_including() Matches a hash that includes the specified key(s) or key/value pairs. Ignores any additional keys.
Edit
git clone [email protected]:bblimke/webmock.git
cd webmock
open lib/webmock/api.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-WebMock--API-hash_including-for-pr
# Commit to gitgit add lib/webmock/api.rbgit commit -m "better docs for WebMock::API#hash_including"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-WebMock--API-hash_including-for-pr
hub pull-request
# Celebrate!