codegram/spinach — Issue #62: Support Scenario Outlines
Author: alisterscott
Created: 2011-10-29 12:01:24+00:00
State: open

Scenario Outlines are not currently supported.

For example

Scenario Outline: Search for Watir
Given I am on the Home Page
When I search for "Watir"
Then I should see at least results
Scenarios:
| search engine | expected number of |
| Google | 100,000 |
| Bing | 30,000 |

This gives:

Scenario: Search for Watir
? Given I am on the Home Page
~ When I search for "Watir"
~ Then I should see at least results

Step 'I am on the Home Page' not found

You can define it with:

Given 'I am on the Home Page' do
raise 'step not implemented'
end

even though I created the valid step, it doesn't do the substitution of the value.