cucumber/gherkin — Issue #138: Doc strings and data tables edge cases
Author: jbpros
Created: 2011-10-16 22:49:40+00:00
State: open

Consider the following scenario:

```cucumber
Feature:
Scenario: one step with a doc string AND a data table
Given the following things:
"""
This is a doc string
"""
| and | this | is |
| a | data | table |
Given some other step
```

Running Cucumber against it will display:

```bash
Feature:

Scenario: one step with a doc string AND a data table # features/test.feature:2
Given the following things: # features/test.feature:3
"""
This is a doc string
"""
Given some other step # features/test.feature:9
| and | this | is |
| a | data | table |
```

I would have expected Gherkin's parser to throw an exception on this. And Cucumber should certainly not pass the data table to the second step.

Also:

```cucumber
Feature:
Scenario: several doc strings passed to one step
Given the following strings:
"""
This is the first string
"""
"""
This is the second string
"""
```

Outputs:

```bash
Feature:

Scenario: several doc strings passed to one step # features/test.feature:2
Given the following strings: # features/test.feature:3
"""
This is the second string
"""
```

Same goes here; Gherkin should yell at me.