Sha256: b22b41ecdfe3a84a25c8a4043e54a30e55ecc78c2dff1b32dbc2832379c8fbad

Contents?: true

Size: 775 Bytes

Versions: 2

Compression:

Stored size: 775 Bytes

Contents

Feature: Flight Emissions Calculations
  The flight model should generate correct emission calculations

  Scenario Outline: Standard Calculations for origin/destination airport, airline, and craft
    Given a flight has "origin_airport.iata_code" of "<source>"
    And it has "destination_airport.iata_code" of "<dest>"
    And it has "airline.iata_code" of "<airline>"
    And it has "date" of "<date>"
    And it used "aircraft.icao_code" "<aircraft>"
    When emissions are calculated
    Then the emission value should be within 1 kgs of <emission>
    Examples:
      | source | dest | airline | date       | aircraft | emission |
      | DTW    | SFO  | UA      | 2010-06-25 | A320     | 1153     |
      | IAD    | CDG  | AF      | 2010-06-25 | A320     | 2070     |

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
flight-0.0.17 features/flight_emissions.feature
flight-0.0.16 features/flight_emissions.feature