# bblimke/webmock

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

Repository: https://github.com/bblimke/webmock
Canonical: https://ross.abutalabs.com/products/webmock
Language: Ruby
License: MIT
License Family: permissive
Last push: 2026-08-22T20:20:21+00:00

## Health v2 (maintenance only)
Score: 95/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 86, longevity 100
- inputs: {"age_days": 6144, "days_push": 11, "days_rel": 12, "gap_med": 71.5, "n_releases_24m": 5}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4049, forks 579 (observed 2026-08-28T04:08:33.782514+00:00)

## What it is
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
- artifact type: library
- maturity: stable
- function: mocking, testing, http-client
- domain: testing, developer-tools, web-development
- platform: ruby, jvm
- tags: http-stubbing, request-mocking, rspec, minitest, test-unit

## Member repositories
- bblimke/webmock (main) score 95

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:33.782514+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:23:41.071856+00:00, confidence not recorded.
  - readme: https://github.com/bblimke/webmock (fetched 2026-08-28T04:08:33.782514+00:00, sha 199d898cf37b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
