logo

RSpec extension to run Gherkin steps

Gem Version Dependency Status Build Status Coverage Status Code Climate

Documentation

Hosted on relish

Example

require 'spec_helper'

Feature "The Simplest 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