Created
June 19, 2011 21:07
-
-
Save jbpros/1034756 to your computer and use it in GitHub Desktop.
Remove doc tables from core
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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