{"id":13880271,"url":"https://github.com/bogdan/accept_values_for","last_synced_at":"2025-04-05T21:08:10.043Z","repository":{"id":894638,"uuid":"647105","full_name":"bogdan/accept_values_for","owner":"bogdan","description":"Rspec matchers to test ActiveModel validation that follows BDD.","archived":false,"fork":false,"pushed_at":"2024-11-15T12:49:23.000Z","size":103,"stargazers_count":107,"open_issues_count":0,"forks_count":19,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-29T20:06:15.026Z","etag":null,"topics":["rspec","ruby","validation"],"latest_commit_sha":null,"homepage":"","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/bogdan.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2010-05-04T18:52:55.000Z","updated_at":"2025-02-23T05:13:10.000Z","dependencies_parsed_at":"2025-01-13T01:15:50.460Z","dependency_job_id":null,"html_url":"https://github.com/bogdan/accept_values_for","commit_stats":{"total_commits":143,"total_committers":14,"mean_commits":"10.214285714285714","dds":0.3426573426573427,"last_synced_commit":"650df6b745bcf987b1d3f8b1da36f142c0593dc8"},"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bogdan%2Faccept_values_for","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bogdan%2Faccept_values_for/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bogdan%2Faccept_values_for/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bogdan%2Faccept_values_for/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bogdan","download_url":"https://codeload.github.com/bogdan/accept_values_for/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247399877,"owners_count":20932876,"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":["rspec","ruby","validation"],"created_at":"2024-08-06T08:02:54.427Z","updated_at":"2025-04-05T21:08:10.013Z","avatar_url":"https://github.com/bogdan.png","language":"Ruby","readme":"# AcceptValuesFor\n\nWriting specs for complex validations is annoying. AcceptValuesFor makes it easy\nto test your validations with real world values, asserting which values should\nbe accepted by your model and which should not.\n\nRead the [original blog post](http://gusiev.com/2010/06/ultimate-rspec-matcher-to-test-validation/).\n\n[![Gem Version](https://badge.fury.io/rb/accept_values_for.png)](http://badge.fury.io/rb/accept_values_for)\n[![Build Status](https://github.com/bogdan/accept_values_for/workflows/CI/badge.svg?branch=master)](https://github.com/bogdan/accept_values_for/actions)\n[![Code Climate](https://codeclimate.com/github/bogdan/accept_values_for.png)](https://codeclimate.com/github/bogdan/accept_values_for)\n\n## Usage\n\n```ruby\ndescribe User do\n  describe \"validation\" do\n    subject(:user) { User.new }\n\n    it { should accept_values_for(:email, \"john@example.com\", \"jane@example.org\") }\n    it { should_not accept_values_for(:email, nil, \" \", \"john\", \"john@example\") }\n  end\nend\n```\n\n## Dependencies\n\n* Active Model (6, 7, 8)\n* RSpec (3)\n\n## Installation\n\n### Gemfile\n\n```ruby\ngroup :test do\n  gem \"accept_values_for\"\nend\n```\n\n## Self-Promotion\n\nLike AcceptValuesFor?\n\nWatch the repository on [GitHub](https://github.com/bogdan/accept_values_for)\nand read [my blog](http://gusiev.com).\n","funding_links":[],"categories":["Ruby"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbogdan%2Faccept_values_for","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbogdan%2Faccept_values_for","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbogdan%2Faccept_values_for/lists"}