Skip to content

Instantly share code, notes, and snippets.

@jbpros
Created June 19, 2011 21:07
Show Gist options
  • Save jbpros/1034756 to your computer and use it in GitHub Desktop.
Save jbpros/1034756 to your computer and use it in GitHub Desktop.
Remove doc tables from core
Scenario: All steps passing means the scenario passes
Given a scenario "Basic Arithmetic" with:
"""
When I add 4 and 5
Then the result is 9
"""
When Cucumber executes "Basic Arithmetic" with these step mappings:
| I add 4 and 5 | passing |
| the result is 9 | passing |
Then the scenario passes
# becomes:
Scenario: All steps passing means the scenario passes
Given a scenario "Basic Arithmetic" with:
"""
When I add 4 and 5
Then the result is 9
"""
And the step "I add 4 and 5" maps to "passing"
And the step "the result is 9" maps to "passing"
When Cucumber executes the scenario "Basic Arithmetic"
Then the scenario passes
# or even:
Scenario: All steps passing means the scenario passes
Given a scenario "Basic Arithmetic" with:
"""
When I add 4 and 5
Then the result is 9
"""
And the step "I add 4 and 5" maps to a passing definition
And the step "the result is 9" maps to a passing definition
When Cucumber executes the scenario "Basic Arithmetic"
Then the scenario passes
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment