Project

maniok_bdd

0.0
No commit activity in last 3 years
No release in over 3 years
BDD with POROs
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 2.5
~> 2.0
 Project Readme

logo

RSpec extension to run Gherkin steps

Gem Version Dependency Status Build Status Coverage Status Code Climate Bitdeli Badge

Documentation

Please read the announcement blog post.

Warning, this project is a Work In Progress. Before going further, I would like to find fellow rubists who practice "Specification By Example" and got hurt by cucumber step definitions lack of readability and maintenance.

Please keep in touch through twitter or this github issue.

Example

require 'spec_helper'

# type :feature is for Capybara 
Feature "The Simplest Feature", type: :feature  do

  shared_steps "home" do
    Given "I am on the home page" do
      visit "/"
    end
  end

  Scenario "The Simplest Scenario" do
    include_steps "home"

    When "something happens" do

    end

    Then "it should assert correctly" do
      true.should be_true
    end
  end
end

Author

Jean-Michel Garnier

Heavily inspired by http://coulda.tiggerpalace.com/ & Railsware rspec-example_steps

License: MIT