{"id":16372464,"url":"https://github.com/nicholasjhenry/contract-testing","last_synced_at":"2026-03-13T18:30:23.078Z","repository":{"id":31386735,"uuid":"34949842","full_name":"nicholasjhenry/wbitdd","owner":"nicholasjhenry","description":"Demonstrates Contract Testing based on \"The World's Best Intro to TDD\"","archived":false,"fork":false,"pushed_at":"2017-01-07T17:19:40.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-12-31T17:19:59.581Z","etag":null,"topics":["experiment","professional-development","ruby"],"latest_commit_sha":null,"homepage":"http://online-training.jbrains.ca/courses/wbitdd-01/lectures/139945","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nicholasjhenry.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-02T14:02:44.000Z","updated_at":"2022-01-31T00:34:08.000Z","dependencies_parsed_at":"2022-08-03T15:17:49.098Z","dependency_job_id":null,"html_url":"https://github.com/nicholasjhenry/wbitdd","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicholasjhenry%2Fwbitdd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicholasjhenry%2Fwbitdd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicholasjhenry%2Fwbitdd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nicholasjhenry%2Fwbitdd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nicholasjhenry","download_url":"https://codeload.github.com/nicholasjhenry/wbitdd/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239921881,"owners_count":19718842,"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":["experiment","professional-development","ruby"],"created_at":"2024-10-11T03:11:29.138Z","updated_at":"2026-03-13T18:30:23.031Z","avatar_url":"https://github.com/nicholasjhenry.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Contract Testing\n\nDemonstrates Contract Testing in [Ruby](https://www.ruby-lang.org/) based on [The World's Best Intro to TDD](http://online-training.jbrains.ca/courses/wbitdd-01/lectures/139945).\n\nI was interested in Contract Testing as a mechansim to avoid API drift. There are two branches in this repository that demonstrates this problem:\n\n1. [api-drift](https://github.com/nicholasjhenry/wbitdd/tree/api-drift)\n2. [prevent-api_drift](https://github.com/nicholasjhenry/wbitdd/tree/prevent-api-drift)\n\nThis source code was used as a discussion with [J. B. Rainsberger](https://twitter.com/jbrains) over a Google Hangout. Unfortunately, the\ndiscussion wasn't recorded or notes taken. However, they did result in the following tweets from Joe:\n\n\u003e A student at http://online-training.jbrains.ca/courses/wbitdd-01/ … has helped me clarify the correspondence btw test doubles in collaboration tests and contract tests.\n\nhttps://twitter.com/jbrains/status/612042806362681345\n\n\u003e Creation methods in contrast tests help enumerate the classes of equivalence in the contract's semantics. How did I not see that before?!\n\nhttps://twitter.com/jbrains/status/611964232351899650\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicholasjhenry%2Fcontract-testing","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnicholasjhenry%2Fcontract-testing","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnicholasjhenry%2Fcontract-testing/lists"}