Hi all,
I'm writing a feature for importing data into our application. I have
a list of example data that is spread in different places in the data
format I am importing. Also this list of data is quite verbose and
large. I have different scenario outlines to catch different cases of
this data and want to share a single examples: definition between
them.
ie.
Feature: Import data from legacy third party format
In order for our customers to have up to date information
They want to be to import existing information
Scenario Outline: Import a file into a blank database
Given I have nothing
When I import file 'features/support/blahh.extension'
Then I should have Item '<ItemId>' with '<Description>'
Scenario Outline: Import a file into an existing database
Given I have item '<Code>' created with description 'dummy'
When I import file 'features/support/blahh.extension'
Examples:
|Code|Description|
|XXXX|Really Long description that goes over a bunch of lines|
Additionally what is also confusing is that the first Scenario Outline
doesn't fail, even though it has no examples, is this desired
behaviour?
Am I doing anything wrong? Is there an existing way to accomplish
this?
If not, where should I start looking to add it?
I can't find any feature definitions for scenario outlines in
http://github.com/aslakhellesoy/cucumber/tree/cb17d9de1ea04e43ecc30f96ba53a68e41b93395/features
I'm using:
cucumber 0.3.7
rspec 1.2.6,
webrat 0.4.4
rails 2.3.2
ubuntu 09.04
Cheers,
Isaac