Skip to content

jmgarnier/maniok_bdd

Repository files navigation

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

About

RSpec extension to run Gherkin steps

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages