{"id":13879440,"url":"https://github.com/thoughtbot/shoulda","last_synced_at":"2025-05-13T18:13:23.701Z","repository":{"id":391940,"uuid":"9664","full_name":"thoughtbot/shoulda","owner":"thoughtbot","description":"Makes tests easy on the fingers and the eyes","archived":false,"fork":false,"pushed_at":"2024-09-24T16:34:29.000Z","size":1345,"stargazers_count":2209,"open_issues_count":2,"forks_count":183,"subscribers_count":58,"default_branch":"main","last_synced_at":"2025-05-03T16:02:24.357Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://www.thoughtbot.com/community","language":"Ruby","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/thoughtbot.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"thoughtbot"}},"created_at":"2008-04-14T13:27:26.000Z","updated_at":"2025-04-30T03:47:14.000Z","dependencies_parsed_at":"2023-07-05T14:46:28.717Z","dependency_job_id":"a1a42928-eb7f-4489-8a25-4294b406cfda","html_url":"https://github.com/thoughtbot/shoulda","commit_stats":{"total_commits":639,"total_committers":72,"mean_commits":8.875,"dds":0.7793427230046949,"last_synced_commit":"9d2b2e23921b3c7f6973582fea88961306734963"},"previous_names":[],"tags_count":34,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoughtbot%2Fshoulda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoughtbot%2Fshoulda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoughtbot%2Fshoulda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thoughtbot%2Fshoulda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thoughtbot","download_url":"https://codeload.github.com/thoughtbot/shoulda/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253341970,"owners_count":21893547,"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-08-06T08:02:21.185Z","updated_at":"2025-05-13T18:13:23.660Z","avatar_url":"https://github.com/thoughtbot.png","language":"Ruby","funding_links":["https://github.com/sponsors/thoughtbot"],"categories":["Ruby","Gems"],"sub_categories":["Testing"],"readme":"# Shoulda [![Gem Version][version-badge]][rubygems] [![Build Status][github-actions-badge]][github-actions] [![Total Downloads][downloads-total]][rubygems] [![Downloads][downloads-badge]][rubygems]\n\n[version-badge]: https://img.shields.io/gem/v/shoulda.svg\n[rubygems]: https://rubygems.org/gems/shoulda\n[github-actions-badge]: https://img.shields.io/github/actions/workflow/status/thoughtbot/shoulda/ci.yml?branch=main\n[github-actions]: https://github.com/thoughtbot/shoulda/actions\n[downloads-total]: https://img.shields.io/gem/dt/shoulda.svg\n[downloads-badge]: https://img.shields.io/gem/dtv/shoulda.svg\n[downloads-badge]: https://img.shields.io/gem/dtv/shoulda.svg\n\nShoulda helps you write more understandable, maintainable Rails-specific tests\nunder Minitest and Test::Unit.\n\n## Quick links\n\n📢 **[See what's changed in recent versions.][changelog]**\n\n[changelog]: CHANGELOG.md\n\n## Overview\n\nAs an umbrella gem, the `shoulda` gem doesn't contain any code of its own but\nrather brings in behavior from two other gems:\n\n* [Shoulda Context]\n* [Shoulda Matchers]\n\n[Shoulda Context]: https://github.com/thoughtbot/shoulda-context\n[Shoulda Matchers]: https://github.com/thoughtbot/shoulda-matchers\n\nFor instance:\n\n```ruby\nrequire \"test_helper\"\n\nclass UserTest \u003c ActiveSupport::TestCase\n  context \"associations\" do\n    should have_many(:posts)\n  end\n\n  context \"validations\" do\n    should validate_presence_of(:email)\n    should allow_value(\"user@example.com\").for(:email)\n    should_not allow_value(\"not-an-email\").for(:email)\n  end\n\n  context \"#name\" do\n    should \"consist of first and last name\" do\n      user = User.new(first_name: \"John\", last_name: \"Smith\")\n      assert_equal \"John Smith\", user.name\n    end\n  end\nend\n```\n\nHere, the `context` and `should` methods come from Shoulda Context; matchers\n(e.g. `have_many`, `allow_value`) come from Shoulda Matchers.\n\nSee the READMEs for these projects for more information.\n\n## Compatibility\n\nShoulda is tested and supported against Ruby 3.0+, Rails 6.1+, RSpec 3.x,\nMinitest 4.x, and Test::Unit 3.x.\n\n- For Ruby \u003c 3 and Rails \u003c 6.1 compatibility, please use [v4.0.0][v4.0.0].\n\n[v4.0.0]: https://github.com/thoughtbot/shoulda-matchers/tree/v4.0.0\n\n## Versioning\n\nShoulda follows Semantic Versioning 2.0 as defined at \u003chttp://semver.org\u003e.\n\n## Team\n\nShoulda is currently maintained by [Pedro Paiva][VSPPedro]. Previous maintainers\ninclude [Elliot Winkler][mcmire], [Jason Draper][drapergeek], [Gabe\nBerke-Williams][gabebw], [Ryan McGeary][rmm5t], [Joe Ferris][jferris], [Dan\nCroaky][croaky], and [Tammer Saleh][tammersaleh].\n\n[VSPPedro]: https://github.com/VSPPedro\n[mcmire]: https://github.com/mcmire\n[drapergeek]: https://github.com/drapergeek\n[gabebw]: https://github.com/gabebw\n[rmm5t]: https://github.com/rmm5t\n[jferris]: https://github.com/jferris\n[croaky]: https://github.com/croaky\n[tammersaleh]: https://github.com/tammersaleh\n\n## Copyright/License\n\nShoulda is copyright © Tammer Saleh and [thoughtbot,\ninc][thoughtbot-website]. It is free and opensource software and may be\nredistributed under the terms specified in the [LICENSE](LICENSE) file.\n\n[thoughtbot-website]: https://thoughtbot.com\n\n\u003c!-- START /templates/footer.md --\u003e\n## About thoughtbot\n\n![thoughtbot](https://thoughtbot.com/thoughtbot-logo-for-readmes.svg)\n\nThis repo is maintained and funded by thoughtbot, inc.\nThe names and logos for thoughtbot are trademarks of thoughtbot, inc.\n\nWe love open source software!\nSee [our other projects][community].\nWe are [available for hire][hire].\n\n[community]: https://thoughtbot.com/community?utm_source=github\n[hire]: https://thoughtbot.com/hire-us?utm_source=github\n\n\n\u003c!-- END /templates/footer.md --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthoughtbot%2Fshoulda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthoughtbot%2Fshoulda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthoughtbot%2Fshoulda/lists"}