RSpec extension to run Gherkin steps
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.
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
Heavily inspired by http://coulda.tiggerpalace.com/ & Railsware rspec-example_steps
License: MIT