Sha256: dfe15c8f265e0c8b4d0353381fc40774a6a0336e4ec1c8e2e5ae56b410ed125b

Contents?: true

Size: 1.49 KB

Versions: 4

Compression:

Stored size: 1.49 KB

Contents

  Feature: Diet Committee Calculations
    The diet model should generate correct committee calculations

  Scenario Outline: Intensity committee from diet class
    Given a diet emitter
    And a characteristic "diet_class.name" of "<diet_class>"
    When the "intensity" committee is calculated
    Then the conclusion of the committee should be "<intensity>"
    Examples:
      | diet_class | intensity |
      |   standard |      3.78 |
      |      vegan |      2.57 |
      | vegetarian |      3.01 |

  Scenario Outline: Intensity committee from  food groups
    Given a diet emitter
    And a characteristic "red_meat_share" of "<meat>"
    And a characteristic "poultry_share" of "<poultry>"
    And a characteristic "fish_share" of "<fish>"
    And a characteristic "eggs_share" of "<eggs>"
    And a characteristic "nuts_share" of "<nuts>"
    And a characteristic "dairy_share" of "<dairy>"
    And a characteristic "cereals_and_grains_share" of "<cereals>"
    And a characteristic "fruit_share" of "<fruit>"
    And a characteristic "vegetables_share" of "<veg>"
    And a characteristic "oils_and_sugars_share" of "<oil>"
    When the "intensity" committee is calculated
    Then the committee should have used quorum "from food groups"
    And the conclusion of the committee should be "<intensity>"
    Examples:
      | meat | poultry | fish | eggs | nuts | dairy | cereals | fruit | veg | oil | intensity |
      | 0.1  | 0.1     | 0.1  | 0.1  | 0.1  | 0.1   | 0.1     | 0.1   | 0.1 | 0.1 | 5         |

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
diet-0.0.18 features/diet_committees.feature
diet-0.0.17 features/diet_committees.feature
diet-0.0.16 features/diet_committees.feature
diet-0.0.15 features/diet_committees.feature