fuel_purchase 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,20 +1,11 @@
1
- Feature: Fuel Purchase Committee Calculations
2
- The fuel purchase model should generate correct committee calculations
1
+ Feature: Fuel Purchase Committee Calculations
2
+ The fuel purchase model should generate correct committee calculations
3
3
 
4
- Scenario Outline: Standard Calculations for TODO
5
- Given a fuel purchase has "origin_airport.iata_code" of "<source>"
6
- And it has "destination_airport.iata_code" of "<dest>"
7
- And it has "airline.iata_code" of "<airline>"
8
- And it has "date" of "<date>"
9
- And it used "aircraft.icao_code" "<aircraft>"
10
- When emissions are calculated
11
- Then the fuel committee should be close to <fuel>, +/-1
12
- And the fuel_per_segment committee should be close to <fuel_per_segment>, +/-10
13
- And the adjusted_distance_per_segment committee should be close to <adjusted_distance_per_segment>, +/-1
14
- And the load_factor committee should be close to <load_factor>, +/-0.001
15
- And the passengers committee should be exactly <passengers>
16
- And the adjusted_distance committee should be close to <adjusted_distance>, +/-1
17
- Examples:
18
- | source | dest | airline | date | aircraft | fuel | fuel_per_segment | adjusted_distance_per_segment | load_factor | passengers | adjusted_distance |
19
- | DTW | SFO | UA | 2010-06-25 | A320 | 24676 | 7612 | 1341 | 0.801 | 120 | 2241 |
20
- | IAD | CDG | AF | 2010-06-25 | A320 | 43477 | 13413 | 2492 | 0.800 | 120 | 4161 |
4
+ Scenario Outline: Volume Comittee
5
+ Given a fuel purchase has "cost" of "<cost>"
6
+ And it has "price" of "<price>"
7
+ When emissions are calculated
8
+ Then the volume committee should be close to <volume>, +/-1
9
+ Examples:
10
+ | cost | price | volume |
11
+ | 3.0 | 4.0 | 12.0 |
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fuel_purchase
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Andy Rossmeissl
@@ -19,7 +19,7 @@ autorequire:
19
19
  bindir: bin
20
20
  cert_chain: []
21
21
 
22
- date: 2010-07-23 00:00:00 -04:00
22
+ date: 2010-07-28 00:00:00 -04:00
23
23
  default_executable:
24
24
  dependencies:
25
25
  - !ruby/object:Gem::Dependency