{"id":18728646,"url":"https://github.com/rubyonworld/simple_bdd","last_synced_at":"2025-10-24T13:26:47.760Z","repository":{"id":174008147,"uuid":"542165765","full_name":"RubyOnWorld/simple_bdd","owner":"RubyOnWorld","description":"Simple BDD offers basic Behaviour Driven Development language syntax. It enables tests to take steps to become more declarative than imperative by hiding the implementation and revealing test intent.","archived":false,"fork":false,"pushed_at":"2022-09-28T01:06:05.000Z","size":35,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-19T20:32:28.094Z","etag":null,"topics":["basic","bdd","ruby","simple","syntax"],"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/RubyOnWorld.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"zenodo":null}},"created_at":"2022-09-27T15:46:29.000Z","updated_at":"2022-09-28T03:58:38.000Z","dependencies_parsed_at":null,"dependency_job_id":"ab8c8884-dd33-4005-9788-1331e7fbf13d","html_url":"https://github.com/RubyOnWorld/simple_bdd","commit_stats":null,"previous_names":["rubyonworld/simple_bdd"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RubyOnWorld/simple_bdd","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyOnWorld%2Fsimple_bdd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyOnWorld%2Fsimple_bdd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyOnWorld%2Fsimple_bdd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyOnWorld%2Fsimple_bdd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RubyOnWorld","download_url":"https://codeload.github.com/RubyOnWorld/simple_bdd/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyOnWorld%2Fsimple_bdd/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":280804356,"owners_count":26394217,"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","status":"online","status_checked_at":"2025-10-24T02:00:06.418Z","response_time":73,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["basic","bdd","ruby","simple","syntax"],"created_at":"2024-11-07T14:22:38.190Z","updated_at":"2025-10-24T13:26:47.748Z","avatar_url":"https://github.com/RubyOnWorld.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple BDD\n\nSimple BDD offers basic Behaviour Driven Development language syntax. It enables tests to take steps to become more declarative than imperative by hiding the implementation and revealing test intent. It can be used in any test framework as it's just a way to keep the collaborative business language within a test by calling methods which directly relate to the step in the test.\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n``` ruby\ngem 'simple_bdd'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install simple_bdd\n\n## Usage\n\n### Standard Usage\n\nThe following will call the commented method in scope of the current class or module.  (Every RSpec `describe` block is an anonymous class.)\n\n``` ruby\n[Gg]iven \"Some state\" # calls some_state\n[Ww]hen \"this happens\" # calls this_happens\n[Tt]hen \"this change occurs\" # calls this_change_occurs\n[Bb]ut \"this other thing still happens\" # calls this_other_thing_still_happens\n[Aa]nd \"this other side effect happens\" # calls this_other_side_effect_happens\n```\n\n## Behavior Usage\n\nSome additional methods allow you to group related behaviors in your tests:\n\n``` ruby\nGiven \"Admin is signed in\"\n\nbehavior \"admin can manage widgets\" do\n  When \"Admin views all widgets\"\n  Then \"Admin sees the first widget\"\nend\n\nbehavior \"admin can manage factories\" do\n  When \"Admin views all factories\"\n  Then \"Admin sees the first factory\"\nend\n```\n\nAny of the following names can be substituted for `behavior` above:\n\n* `and_by`\n* `behaves_like`\n* `behavior`\n* `behaviour`\n* `by`\n* `it_also`\n\n## RSpec\n\nTo use SimpleBDD in your tests, simply add the following line to your spec helper:\n\n``` ruby\nrequire 'simple_bdd/rspec'\n```\n\nOr, if you want to have more control, you can do this instead:\n\n``` ruby\nrequire 'simple_bdd'\n\nRSpec.configure do |config|\n  config.include SimpleBdd\nend\n```\n\nBy default, SimpleBDD marks specs pending on missing step implementations.\nYou can change this behavior to raise an error instead in the spec helper:\n\n``` ruby\nRSpec.configure do |config|\n  config.raise_error_on_missing_step_implementation = true\nend\n```\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubyonworld%2Fsimple_bdd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubyonworld%2Fsimple_bdd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubyonworld%2Fsimple_bdd/lists"}