{"id":15649737,"url":"https://github.com/pat/fakeweb-matcher","last_synced_at":"2025-04-30T16:29:45.900Z","repository":{"id":623715,"uuid":"263609","full_name":"pat/fakeweb-matcher","owner":"pat","description":"An RSpec matcher for the Fakeweb HTTP stubbing library","archived":false,"fork":false,"pushed_at":"2020-03-03T01:44:14.000Z","size":33,"stargazers_count":37,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-30T17:51:12.953Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"MG-RAST/AWE","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pat.png","metadata":{"files":{"readme":"README.textile","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-07-29T14:25:17.000Z","updated_at":"2020-03-03T01:44:16.000Z","dependencies_parsed_at":"2022-07-07T11:29:57.739Z","dependency_job_id":null,"html_url":"https://github.com/pat/fakeweb-matcher","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pat%2Ffakeweb-matcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pat%2Ffakeweb-matcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pat%2Ffakeweb-matcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pat%2Ffakeweb-matcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pat","download_url":"https://codeload.github.com/pat/fakeweb-matcher/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251742119,"owners_count":21636389,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-03T12:31:35.499Z","updated_at":"2025-04-30T16:29:45.541Z","avatar_url":"https://github.com/pat.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"h1. FakeWeb Matcher\n\nAn RSpec matcher for the Fakeweb HTTP stubbing library, allowing you to use RSpec syntax to check if requests to particular URIs have been made.\n\nh2. Installing\n\nFirst, install the gem\n\u003cpre\u003e\u003ccode\u003egem install fakeweb-matcher --source http://gemcutter.org\u003c/code\u003e\u003c/pre\u003e\n\nThen, in your @spec/spec_helper.rb@ file, you'll need to require the library _after_ you have required \"FakeWeb\":http://fakeweb.rubyforge.org and \"RSpec\":http://rspec.info. It should end up looking something like this:\n\n\u003cpre\u003e\u003ccode\u003erequire 'spec'\nrequire 'fakeweb'\nrequire 'fakeweb_matcher'\u003c/code\u003e\u003c/pre\u003e\n\nThis ensures that the matcher is automatically loaded into RSpec for you.\n\nh2. Usage\n\n\u003cpre\u003e\u003ccode\u003eFakeWeb.should have_requested(:get, 'http://example.com')\nFakeWeb.should have_requested(:any, 'http://example.com')\nFakeWeb.should have_requested(:post, /http:\\/\\/example.com\\/)\nFakeWeb.should_not have_requested(:put, 'http://example.com')\u003c/code\u003e\u003c/pre\u003e\n\nh2. Contribution\n\nUnsurprisingly, this library is tested using RSpec, and relies upon FakeWeb. It also uses \"YARD\":http://yard.soen.ca/ for documentation, so if you're submitting patches (which are most definitely welcome!) please use YARD syntax and have valid specs.\n\nh2. Contributors\n\n* \"Thilo Utke\":http://github.com/thilo (Regex URL matching)\n* \"Wes Morgan\":http://nerdyadventuresofwes.blogspot.com/ (Normalise query params)\n\nh2. Copyright\n\nCopyright (c) 2009 Pat Allan, released under an MIT Licence\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpat%2Ffakeweb-matcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpat%2Ffakeweb-matcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpat%2Ffakeweb-matcher/lists"}