{"id":19514886,"url":"https://github.com/ndp/assert_fixtures","last_synced_at":"2025-07-11T05:02:38.788Z","repository":{"id":31027751,"uuid":"34586301","full_name":"ndp/assert_fixtures","owner":"ndp","description":null,"archived":false,"fork":false,"pushed_at":"2015-04-25T21:11:45.000Z","size":100,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-01T16:58:01.565Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"arc42/microservice-examples","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ndp.png","metadata":{"files":{"readme":"README.textile","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-04-25T21:10:46.000Z","updated_at":"2023-04-18T17:24:07.000Z","dependencies_parsed_at":"2022-08-24T14:20:51.643Z","dependency_job_id":null,"html_url":"https://github.com/ndp/assert_fixtures","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ndp/assert_fixtures","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndp%2Fassert_fixtures","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndp%2Fassert_fixtures/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndp%2Fassert_fixtures/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndp%2Fassert_fixtures/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ndp","download_url":"https://codeload.github.com/ndp/assert_fixtures/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ndp%2Fassert_fixtures/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264734271,"owners_count":23655631,"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-11-10T23:37:55.797Z","updated_at":"2025-07-11T05:02:38.573Z","avatar_url":"https://github.com/ndp.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"h1. Assert Fixtures Test Helpers\n\nConvenience methods to assert that you ended with with specific fixture data.\nThis solves the problem where you end up with a list of objects and want to\nmake sure they correspond to certain fixtures. This generally involves looping \nthrough them and using map() and making sure each one matches. If you don't \ncare about the order, you end up having to sort in some way first so that you \ncan traverse reasonably. It's not awful, but it'a cumbersome.\n\n\nh2. Fixture Helpers\n\nThis uses method_missing to provide additional functions for each of your \nfixtures:\n\nh3. assert_list_of_N\n\nThis asserts that the lists are the same size and have the same items. Any\ndifference is reported.\n\nExample:\n\n    assert_list_of_candy_bars [:almond_joys], CandyBar.find_nutty()\n    assert_list_of_candy_bars [:almond_joys, :m_and_ms], CandyBar.find_nutty()\n\n\nh3. assert_set_of_N\n\nThis asserts that the lists are the same size and have the same items, but order \nis ignored.\n\nExample:\n\n    assert_set_of_candy_bars [:almond_joys], CandyBar.find_nutty()\n    assert_set_of_candy_bars [:almond_joys, :m_and_ms], CandyBar.find_nutty()\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndp%2Fassert_fixtures","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fndp%2Fassert_fixtures","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fndp%2Fassert_fixtures/lists"}