forked from cucumber/cucumber-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow several tables in the same feature [cucumber#16 state:resolved]
- Loading branch information
1 parent
5c47e36
commit 81fe41b
Showing
4 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Feature: Addition | ||
In order to avoid silly mistakes | ||
As a math idiot | ||
I want to be told the sum of two numbers | ||
|
||
Scenario: Add two numbers | ||
Given I have entered 50 into the calculator | ||
And I have entered 70 into the calculator | ||
When I press add | ||
Then the result should be 120 on the screen | ||
And the result class should be Fixnum | ||
|
||
| input_1 | input_2 | button | output | class | | ||
| 20 | 30 | add | 50 | Fixnum | | ||
| 2 | 5 | add | 7 | Fixnum | | ||
| 0 | 40 | add | 40 | Fixnum | | ||
|
||
Scenario: Add three numbers | ||
Given I have entered 25 into the calculator | ||
And I have entered 12 into the calculator | ||
And I have entered 13 into the calculator | ||
When I press add | ||
Then the result should be 50 on the screen | ||
And the result class should be Fixnum | ||
|
||
| input_1 | input_2 | input_3 | button | output | class | | ||
| 1 | 2 | 3 | add | 6 | Fixnum | |