{"id":19514887,"url":"https://github.com/ndp/assert_changes","last_synced_at":"2026-02-28T22:32:26.437Z","repository":{"id":569098,"uuid":"200533","full_name":"ndp/assert_changes","owner":"ndp","description":"test helpers to concisely assert pre-conditions and post-conditions","archived":false,"fork":false,"pushed_at":"2009-05-14T08:29:39.000Z","size":84,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-08T03:55:28.263Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"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/ndp.png","metadata":{"files":{"readme":"README","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":"2009-05-14T04:16:19.000Z","updated_at":"2013-12-12T15:54:19.000Z","dependencies_parsed_at":"2022-07-15T01:15:59.213Z","dependency_job_id":null,"html_url":"https://github.com/ndp/assert_changes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ndp/assert_changes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndp%2Fassert_changes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndp%2Fassert_changes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndp%2Fassert_changes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndp%2Fassert_changes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ndp","download_url":"https://codeload.github.com/ndp/assert_changes/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndp%2Fassert_changes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29953295,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T18:42:55.706Z","status":"ssl_error","status_checked_at":"2026-02-28T18:42:48.811Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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-11-10T23:37:55.896Z","updated_at":"2026-02-28T22:32:26.419Z","avatar_url":"https://github.com/ndp.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"Assertion that a specific state changes during invocation of the\npassed in block.\n\n  i = 'simple'\n  assert_changes 'i' =\u003e 'whacky' do\n     i = 'whacky'\n  end\n\nThis can be read \"assert i changes to wacky\".\nFunction will verify both the precondition (i is NOT wacky),\nand the post-condition.\n\nThis means i becomes nil during the block (and therefore non-nil\n beforehand):\n  assert_changes 'i' =\u003e nil do ...\n\n\nIf you want to specify a specific transition, you can do so\nby providing an array:\n\n  assert_changes 'i' =\u003e ['simple','whacky'] do\n\nTo specify that there should be no changes, use the symbol :no_change.\n\n  assert_changes 'i' =\u003e :no_change do\n\nFinally, multiple assertions can be passed for larger sets\nof state changes:\n\n  i, j = 1,2\n  assert_changes 'i' =\u003e [1, 2], 'j' =\u003e [2, 1] do\n     Mixer.mix(i,j)\n  end\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndp%2Fassert_changes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fndp%2Fassert_changes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndp%2Fassert_changes/lists"}