{"id":21696414,"url":"https://github.com/madetech/bdd-rails","last_synced_at":"2025-06-18T20:35:31.154Z","repository":{"id":62554055,"uuid":"55552626","full_name":"madetech/bdd-rails","owner":"madetech","description":"A starter kit for testing BDD in rails","archived":false,"fork":false,"pushed_at":"2018-11-19T23:02:37.000Z","size":26,"stargazers_count":4,"open_issues_count":2,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-05-16T21:47:58.236Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","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/madetech.png","metadata":{"files":{"readme":"README.md","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":"2016-04-05T21:06:40.000Z","updated_at":"2025-03-21T10:05:36.000Z","dependencies_parsed_at":"2022-11-03T04:45:47.505Z","dependency_job_id":null,"html_url":"https://github.com/madetech/bdd-rails","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/madetech/bdd-rails","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madetech%2Fbdd-rails","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madetech%2Fbdd-rails/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madetech%2Fbdd-rails/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madetech%2Fbdd-rails/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/madetech","download_url":"https://codeload.github.com/madetech/bdd-rails/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/madetech%2Fbdd-rails/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260629620,"owners_count":23038959,"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-25T19:19:45.991Z","updated_at":"2025-06-18T20:35:26.134Z","avatar_url":"https://github.com/madetech.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BDD Rails: A starter kit\n\n[![Gem Version](https://badge.fury.io/rb/bdd-rails.svg)](https://badge.fury.io/rb/bdd-rails)\n[![Build Status](https://travis-ci.org/madetech/bdd-rails.svg?branch=master)](https://travis-ci.org/madetech/bdd-rails)\n\nHello there! So you think BDD is a great way to talk about software? Are you\nready to codify some of those conversations? Do you build apps in rails? If\nso you've come to the right place.\n\n`bdd-rails` was built to provide a set of generators for a rails app. We provide\nan opinionated setup for using rspec + capybara to feature test your\napplication.\n\n## BDD starts with conversations\n\nMany think BDD is about a certain testing style, it is and it isn't. BDD is much\nmore about the conversations around the desired and undesired behaviour of a\nsystem.\n\nIf you're not having conversations about your system in a BDD style then that\nis where you should start!\n\n## Codifying Behaviour\n\nComing soon... for now read the following articles to find out about the style\nof tests we're writing:\n\n - http://lukemorton.co.uk/thoughts/2016-01-09-feature-testing-in-2016\n - https://about.futurelearn.com/blog/how-we-write-readable-feature-tests-with-rspec/\n - https://www.madetech.com/blog/feature-testing-with-rspec\n\n### Creating a new rails app\n\nFirstly, make sure you have rails installed!\n\n```\ngem install rails\n```\n\nNow let's create a new app!\n\n```\nrails new --skip-test-unit my_bdd_app\ncd my_bdd_app\n```\n\nNext we want to install `bdd-rails`:\n\n```\necho \"gem 'bdd-rails', path: '../../'\" \u003e\u003e Gemfile\nbundle\n```\n\nWe want to install our BDD setup in your rails app:\n\n```\nbundle exec rails g bdd_rails:install\n```\n\nAnd setup our DB:\n\n```\nbundle exec rake db:migrate\n```\n\nNow you can run your (empty) test suite:\n\n```\nbundle exec rspec\n```\n\n### How about an example?\n\nTo install a full example of feature test and code into your application run\nthe following:\n\n```\nbundle exec rails g bdd_rails:example\nbundle exec rspec\n```\n\nNow you have a passing example! Feel free to explore the example code :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadetech%2Fbdd-rails","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmadetech%2Fbdd-rails","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmadetech%2Fbdd-rails/lists"}