{"id":15487967,"url":"https://github.com/dblock/ocmock-expecta","last_synced_at":"2025-09-20T05:33:00.911Z","repository":{"id":13364866,"uuid":"16052480","full_name":"dblock/ocmock-expecta","owner":"dblock","description":"Expecta matchers for OCMock","archived":false,"fork":false,"pushed_at":"2015-10-01T08:53:44.000Z","size":223,"stargazers_count":33,"open_issues_count":2,"forks_count":3,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-03-15T10:20:52.375Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dblock.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-19T19:21:36.000Z","updated_at":"2019-08-13T15:33:56.000Z","dependencies_parsed_at":"2022-09-03T02:31:13.793Z","dependency_job_id":null,"html_url":"https://github.com/dblock/ocmock-expecta","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dblock%2Focmock-expecta","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dblock%2Focmock-expecta/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dblock%2Focmock-expecta/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dblock%2Focmock-expecta/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dblock","download_url":"https://codeload.github.com/dblock/ocmock-expecta/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233553751,"owners_count":18693316,"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-02T06:45:25.230Z","updated_at":"2025-09-20T05:32:55.619Z","avatar_url":"https://github.com/dblock.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"Expecta-OCMock\n==============\n\n[Expecta](https://github.com/specta/expecta) matchers for [OCMock 3.x](https://github.com/erikdoe/ocmock).\n\n## Examples\n\n```objc\n// First check that a method is called\n// Note: it will still call said method in the test. It's not stubbed.\n// These never stub.\n\nit(@\"checks for a method\", ^{\n    @mockify(sut);\n\n    expect(sut).to.receive(@selector(method));\n    [sut method];\n});\n\n// Checks that a method has been called.\n// Then calls it again at the end of the test to check it's return value.\n// be wary if you have side-effects with this.\n\nit(@\"checks for a return value\", ^{\n    @mockify(sut);\n    \n    expect(sut).receive(@selector(method2)).returning(@2);\n    [sut method2];\n});\n\n// Checks that something has been called and that it has the expected arguments\n\nit(@\"checks for an argument to the method\", ^{\n    @mockify(sut);\n    \n    expect(sut).receive(@selector(method3:)).with(@[@\"thing\"]);\n    [sut method3:@\"thing\"];\n});\n```\n\n### Get it\n\n```\npod \"Expecta+OCMock\", \"~\u003e 2.0\"\n```\n\nFor OCMock 2 support, \n\n```\npod \"Expecta+OCMock\", \"~\u003e 1.0\"\n```\n\n### License\n\nMIT, see [LICENSE](LICENSE.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdblock%2Focmock-expecta","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdblock%2Focmock-expecta","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdblock%2Focmock-expecta/lists"}