bblimke/webmock
Library for stubbing and setting expectations on HTTP requests in Ruby. observed · 2026-08-28
Health v2 · maintenance only
95/100
- Activity 99
- Release rhythm 86
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 71.5
- age_days: 6144
- days_rel: 12
- days_push: 11
- n_releases_24m: 5
Adoption not part of the score
4049 stars · 579 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
WebMock is a Ruby library for stubbing HTTP requests and setting expectations on them at the HTTP client library level. It works with many popular Ruby HTTP clients and integrates with RSpec, MiniTest, and Test::Unit.
Use cases
- stub external HTTP requests in Ruby tests
- verify that my code made expected HTTP calls
- mock Net::HTTP and HTTParty responses in specs
- disable real network access during tests
- match requests by method, URI, headers, and body in tests
When to choose
- you write Ruby tests that hit HTTP APIs and need deterministic, offline stubs
- you want request expectations and verification across multiple HTTP client libraries
- you need framework integration with RSpec, MiniTest, or Test::Unit
When to avoid
- you need to mock non-HTTP protocols like gRPC or WebSockets
- you want record-and-replay of real HTTP traffic (consider VCR instead)
- you are not working in Ruby
Facets
library · maturity stable
mocking testing http-client testing developer-tools web-development ruby jvm http-stubbing request-mocking rspec minitest test-unit
1 source
- readme: https://github.com/bblimke/webmock · fetched 2026-08-28 · 199d898cf37b
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| bblimke/webmock | main | 95 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem