codegram/spinach — Issue #61: Abstract Gherkin objects
Author: oriolgual
Created: 2011-10-29 11:08:42+00:00
State: open
Labels: Feature

Right now Spinach is totally coupled to Gherkin, it uses the parsed data in a hash format. We should abstract these into a more OO aproach and split the data in different classes:

* Feature: has a name, description, background and a collection of scenarios
* Background: a collection of steps
* Scenario: has a name, a collection of steps and a result (passed, failed, pending)
* Step: keyword (Given, When Then), step and result (passed, failed, pending)

Suggestions?