| CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Sun, 21 Dec 2025 11:18:56 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20100108022853
location: https://web.archive.org/web/20100108022853/https://github.com/freelancing-god/fakeweb-matcher
server-timing: captures_list;dur=0.833776, exclusion.robots;dur=0.083519, exclusion.robots.policy;dur=0.067225, esindex;dur=0.012037, cdx.remote;dur=7.661692, LoadShardBlock;dur=254.041967, PetaboxLoader3.datanode;dur=121.886215, PetaboxLoader3.resolve;dur=32.738107
x-app-server: wwwb-app225-dc8
x-ts: 302
x-tr: 291
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app225; path=/
x-location: All
x-as: 14061
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Sun, 21 Dec 2025 11:18:57 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.7.61
x-archive-orig-date: Fri, 08 Jan 2010 02:28:50 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "eba237433e3d6b370fb21ad2febc145e"
x-archive-orig-x-runtime: 71ms
x-archive-orig-content-length: 25114
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Fri, 08 Jan 2010 02:28:53 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_13_20100108010257_crawl103-c/52_13_20100108022815_crawl101.arc.gz
server-timing: captures_list;dur=0.431770, exclusion.robots;dur=0.013893, exclusion.robots.policy;dur=0.006503, esindex;dur=0.007306, cdx.remote;dur=11.004589, LoadShardBlock;dur=323.620822, PetaboxLoader3.datanode;dur=140.768903, PetaboxLoader3.resolve;dur=207.827059, load_resource;dur=80.403453
x-app-server: wwwb-app225-dc8
x-ts: 200
x-tr: 494
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
x-location: All
x-as: 14061
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
freelancing-god's fakeweb-matcher at master - GitHub
freelancing-god / fakeweb-matcher
- Source
- Commits
- Network (2)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
-
Branches (1)
- master ✓
- Tags (0)
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Wed Jul 29 07:23:49 -0700 2009 | 1.0 release [freelancing-god] |
| |
LICENSE | Thu Jul 16 15:25:59 -0700 2009 | Initial commit to fakeweb-matcher. [freelancing-god] |
| |
README.textile | Sun Dec 06 04:36:03 -0800 2009 | Adding Thilo to (the new) contributors list, an... [freelancing-god] |
| |
Rakefile | Wed Jul 29 07:23:49 -0700 2009 | 1.0 release [freelancing-god] |
| |
VERSION.yml | Sun Dec 06 04:36:32 -0800 2009 | Updating version to 1.1.0 [freelancing-god] |
| |
fakeweb-matcher.gemspec | Sun Dec 06 04:36:32 -0800 2009 | Updating version to 1.1.0 [freelancing-god] |
| |
lib/ | Sun Dec 06 04:36:03 -0800 2009 | Adding Thilo to (the new) contributors list, an... [freelancing-god] |
| |
spec/ | Mon Nov 30 07:29:26 -0800 2009 | Added support for regular expressions in expect... [Thilo Utke] |
| |
tasks/ | Wed Jul 29 07:23:49 -0700 2009 | 1.0 release [freelancing-god] |
README.textile
FakeWeb Matcher
An RSpec matcher for the Fakeweb HTTP stubbing library, allowing you to use RSpec syntax to check if requests to particular URIs have been made.
Installing
First, install the gem
gem install fakeweb-matcher --source https://gemcutter.org
Then, in your spec/spec_helper.rb file, you’ll need to require the library after you have required FakeWeb and RSpec. It should end up looking something like this:
require 'spec'
require 'fakeweb'
require 'fakeweb_matcher'
This ensures that the matcher is automatically loaded into RSpec for you.
Usage
FakeWeb.should have_requested(:get, 'https://example.com')
FakeWeb.should have_requested(:any, 'https://example.com')
FakeWeb.should have_requested(:post, /http:\/\/example.com\/)
FakeWeb.should_not have_requested(:put, 'https://example.com')
Contribution
Unsurprisingly, this library is tested using RSpec, and relies upon FakeWeb. It also uses YARD for documentation, so if you’re submitting patches (which are most definitely welcome!) please use YARD syntax and have valid specs.
Contributors
- Thilo Utke (Regex URL matching)
Copyright
Copyright © 2009 Pat Allan, released under an MIT Licence
This feature is coming soon. Sit tight!
