Sha256: 8b22544d036244fbf8c62aa23510a931f4e9366f394e1c92bc467352d3470c31

Contents?: true

Size: 1003 Bytes

Versions: 28

Compression:

Stored size: 1003 Bytes

Contents

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

  More Examples:
    | 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

  More Examples:
    | input_1 | input_2 | input_3 | button | output | class  |
    | 1       | 2       | 3       | add    | 6      | Fixnum |

Version data entries

28 entries across 28 versions & 5 rubygems

Version Path
aslakhellesoy-cucumber-0.1.10 spec/cucumber/treetop_parser/multiple_tables.feature
aslakhellesoy-cucumber-0.1.11 spec/cucumber/treetop_parser/multiple_tables.feature
aslakhellesoy-cucumber-0.1.12 spec/cucumber/treetop_parser/multiple_tables.feature
aslakhellesoy-cucumber-0.1.13.2 spec/cucumber/treetop_parser/multiple_tables.feature
aslakhellesoy-cucumber-0.1.13.3 spec/cucumber/treetop_parser/multiple_tables.feature
aslakhellesoy-cucumber-0.1.13 spec/cucumber/treetop_parser/multiple_tables.feature
aslakhellesoy-cucumber-0.1.14.1 spec/cucumber/treetop_parser/multiple_tables.feature
aslakhellesoy-cucumber-0.1.14.2 spec/cucumber/treetop_parser/multiple_tables.feature
aslakhellesoy-cucumber-0.1.15 spec/cucumber/treetop_parser/multiple_tables.feature
aslakhellesoy-cucumber-0.1.16.1 spec/cucumber/treetop_parser/multiple_tables.feature
aslakhellesoy-cucumber-0.1.16.2 spec/cucumber/treetop_parser/multiple_tables.feature
aslakhellesoy-cucumber-0.1.16 spec/cucumber/treetop_parser/multiple_tables.feature
aslakhellesoy-cucumber-0.1.9 spec/cucumber/treetop_parser/multiple_tables.feature
bts-cucumber-0.1.13.1 spec/cucumber/treetop_parser/multiple_tables.feature
bts-cucumber-0.1.13.2 spec/cucumber/treetop_parser/multiple_tables.feature
bts-cucumber-0.1.13.3 spec/cucumber/treetop_parser/multiple_tables.feature
elight-cucumber-0.1.9 spec/cucumber/treetop_parser/multiple_tables.feature
jeffrafter-cucumber-0.1.10 spec/cucumber/treetop_parser/multiple_tables.feature
jeffrafter-cucumber-0.1.12 spec/cucumber/treetop_parser/multiple_tables.feature
cucumber-0.1.10 spec/cucumber/treetop_parser/multiple_tables.feature