To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorFlight Emissions Calculations
The flight model should generate correct emission calculations
 Scenarios

 Calculations from default
 Calculations from date
 Calculations from date and timeframe
 Calculations from cohort based on origin
 Calculations from cohort based on destination
 Calculations from cohort based on aircraft
 Calculations from cohort based on airline
 Calculations from segments per trip
 Calculations from seat class
 Calculations from trips
 Calculations from load factor
 Calculations from seats estimate
 Calculations from aircraft class
 Calculations from country
 Calculations from distance estimate
 Calculations from distance class
 Calculations from aviation multiplier
 Calculations from fuel type
 Calculations from default

 Given
 a flight has nothing
 When
 emissions are calculated
 Then
 the emission value should be within "0.1" kgs of "42.5"
 Calculations from date

 Given
 a flight has "date" of "date"
 When
 emissions are calculated
 Then
 the emission value should be within "0.1" kgs of "emission"
Examples: date emission 20090625 0.0 20100625 42.5 20110625 0.0  Calculations from date and timeframe

 Given
 a flight has "date" of "date"
 And
 it has "timeframe" of "timeframe"
 When
 emissions are calculated
 Then
 the emission value should be within "0.1" kgs of "emission"
Examples: date timeframe emission 20090625 20090101/20090131 0 20090625 20090101/20091231 42.5 20090625 20091201/20091231 0  Calculations from cohort based on origin

 Given
 a flight has "segments_per_trip" of "1"
 And
 it has "origin_airport.iata_code" of "ADA"
 When
 emissions are calculated
 Then
 the emission value should be within "0.1" kgs of "6.3"
 Calculations from cohort based on destination

 Given
 a flight has "segments_per_trip" of "1"
 And
 it has "destination_airport.iata_code" of "AIA"
 When
 emissions are calculated
 Then
 the emission value should be within "0.1" kgs of "6.3"
 Calculations from cohort based on aircraft

 Given
 a flight has "segments_per_trip" of "1"
 And
 it has "aircraft.icao_code" of "FM1"
 When
 emissions are calculated
 Then
 the emission value should be within "0.1" kgs of "4.2"
 Calculations from cohort based on airline

 Given
 a flight has "segments_per_trip" of "1"
 And
 it has "airline.iata_code" of "DA"
 When
 emissions are calculated
 Then
 the emission value should be within "0.1" kgs of "6.3"
 Calculations from segments per trip

 Given
 a flight has "segments_per_trip" of "2"
 When
 emissions are calculated
 Then
 the emission value should be within "0.1" kgs of "45.8"
 Calculations from seat class

 Given
 a flight has "seat_class.name" of "economy"
 When
 emissions are calculated
 Then
 the emission value should be within "0.1" kgs of "38.2"
 Calculations from trips

 Given
 a flight has "trips" of "2"
 When
 emissions are calculated
 Then
 the emission value should be within "0.1" kgs of "43.8"
 Calculations from load factor

 Given
 a flight has "load_factor" of "1"
 When
 emissions are calculated
 Then
 the emission value should be within "0.1" kgs of "34.5"
 Calculations from seats estimate

 Given
 a flight has "seats_estimate" of "100"
 When
 emissions are calculated
 Then
 the emission value should be within "0.1" kgs of "52.4"
 Calculations from aircraft class

 Given
 a flight has "aircraft_class.code" of "BX"
 When
 emissions are calculated
 Then
 the emission value should be within "0.1" kgs of "114.5"
 Calculations from country

 Given
 a flight has "country.iso_3166_code" of "UK"
 When
 emissions are calculated
 Then
 the emission value should be within "0.1" kgs of "46.3"
 Calculations from distance estimate

 Given
 a flight has "distance_estimate" of "185.2"
 When
 emissions are calculated
 Then
 the emission value should be within "0.1" kgs of "6.6"
 Calculations from distance class

 Given
 a flight has "distance_class.name" of "petite"
 When
 emissions are calculated
 Then
 the emission value should be within "0.1" kgs of "6.6"
 Calculations from aviation multiplier

 Given
 a flight has "aviation_multiplier" of "1"
 When
 emissions are calculated
 Then
 the emission value should be within "0.1" kgs of "21.2"
 Calculations from fuel type

 Given
 a flight has "fuel_type.name" of "Aviation Gasoline"
 When
 emissions are calculated
 Then
 the emission value should be within "0.1" kgs of "85.0"
Last published almost 6 years ago by brighterplanet.