WebMock
Replace external HTTP calls with repeatable local test responses.
bblimke · Code and testing
GitHub projectOpen source Open on GitHubHow to try it
With Ruby 3.2 available, install webmock at version 3.40.0. Stub a toy request and return a synthetic fruit record.
What we tested
3.40.0. Stub a toy request and return a synthetic fruit record. The stub returned the expected body and was called exactly once.