# WebMock

Ruby library that stubs HTTP requests and sets expectations on them in tests.


Source: https://findsoftware.frbit.cloud/webmock/
Last reviewed: 2026-11-17
Listed since: 2026-11-17

## Record

### Links

- repository: https://github.com/bblimke/webmock
- docs: https://github.com/bblimke/webmock/blob/master/README.md
- forum: https://groups.google.com/group/webmock-users

### Identity

- status: active
- maintainer: Bartosz Blimke
- maintainerType: individual
- parent: unknown
- firstRelease: 2009
- hqCountry: unknown

### Kind

- category: testing
- hosting: not applicable
- language: ruby
- runtime: ruby
- runtimeMin: ruby 2.6
- basedOn: unknown

### Content

- contentStore: not applicable
- databases: not applicable
- adminUi: not applicable
- headlessApi: not applicable
- templating: not applicable
- i18n: not applicable

### Rendering and deploy

- runsAs: unknown
- renderingModes: not applicable
- installMethod: gem, source

### License

- licenseModel: open-source
- license: MIT

### Releases

- currentMajor: 3
- latestReleaseDate: 2026-10-14

### Adoption

- githubStargazers: 4049
- packagistDownloads: not applicable
- npmWeeklyDownloads: not applicable
- contributors: 251
- pluginCount: unknown
- packagistMonthlyDownloads: unknown
- ecosystemsMonthlyDownloads: unknown
- httpArchiveSites: unknown
- wordpressActiveInstalls: unknown
- dependentRepos: 60590
- dependentPackages: 8353

### Sources

- urls: https://api.github.com/repos/bblimke/webmock (read 2026-11-17)
- urls: https://github.com/bblimke/webmock/blob/master/README.md (read 2026-11-17)
- firstRelease: https://rubygems.org/api/v1/versions/webmock.json (read 2026-11-17)
- maintainer: https://raw.githubusercontent.com/bblimke/webmock/master/LICENSE (read 2026-11-17)
- language: https://api.github.com/repos/bblimke/webmock (read 2026-11-17)
- runtime: https://raw.githubusercontent.com/bblimke/webmock/master/README.md (read 2026-11-17)
- runtimeMin: https://raw.githubusercontent.com/bblimke/webmock/v3.34.0/webmock.gemspec (read 2026-11-17)
- category: https://raw.githubusercontent.com/bblimke/webmock/master/README.md (read 2026-11-17)
- installMethod: https://raw.githubusercontent.com/bblimke/webmock/master/README.md (read 2026-11-17)
- installMethod: https://raw.githubusercontent.com/bblimke/webmock/master/README.md (read 2026-11-17)
- currentMajor: https://api.github.com/repos/bblimke/webmock/releases?per_page=100 (read 2026-11-17)
- latestReleaseDate: https://api.github.com/repos/bblimke/webmock/releases?per_page=100 (read 2026-11-17)
- githubStargazers: https://api.github.com/repos/bblimke/webmock (read 2026-11-17)
- contributors: https://api.github.com/repos/bblimke/webmock/contributors?per_page=1 (read 2026-11-17)
- license: https://rubygems.org/api/v1/gems/webmock.json (read 2026-11-17)
- dependentPackages: https://packages.ecosyste.ms/api/v1/registries/rubygems.org/packages/webmock (read 2026-11-17)
- dependentRepos: https://packages.ecosyste.ms/api/v1/registries/rubygems.org/packages/webmock (read 2026-11-17)

## Notes

WebMock stubs HTTP requests and sets expectations on them in Ruby tests. It works at the level of the low HTTP client library, so tests keep their stubs when an application changes its HTTP library, and it supports RSpec, MiniTest and Test::Unit. For recording real traffic and replaying it later, the README points to VCR used together with WebMock.

---

Data licensed CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Attributes are recorded, never scored; absent means unknown.
Credit, in full: FindSoftware, CC BY 4.0
