earth 0.3.15 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. data/Gemfile +1 -0
  2. data/earth.gemspec +4 -4
  3. data/features/automobile_fuel.feature +44 -0
  4. data/features/automobile_type_fuel_age.feature +2 -1
  5. data/features/automobile_type_fuel_year.feature +86 -16
  6. data/features/automobile_type_fuel_year_age.feature +94 -0
  7. data/features/automobile_type_fuel_year_control.feature +44 -4
  8. data/features/automobile_type_year.feature +27 -7
  9. data/features/carrier_mode.feature +20 -30
  10. data/features/fuel_year.feature +22 -12
  11. data/features/support/imports/automobile_fuel_bad.csv +3 -0
  12. data/features/support/imports/automobile_fuel_good.csv +3 -0
  13. data/features/support/imports/automobile_type_fuel_year_age_bad.csv +2 -0
  14. data/features/support/imports/automobile_type_fuel_year_age_good.csv +2 -0
  15. data/features/support/imports/automobile_type_fuel_year_bad.csv +2 -2
  16. data/features/support/imports/automobile_type_fuel_year_control_bad.csv +2 -3
  17. data/features/support/imports/automobile_type_fuel_year_control_good.csv +2 -3
  18. data/features/support/imports/automobile_type_fuel_year_good.csv +2 -2
  19. data/features/support/imports/automobile_type_year_bad.csv +2 -2
  20. data/features/support/imports/automobile_type_year_good.csv +2 -2
  21. data/features/support/imports/carrier_mode_bad.csv +2 -3
  22. data/features/support/imports/carrier_mode_good.csv +2 -3
  23. data/features/support/imports/fuel_year_bad.csv +2 -2
  24. data/features/support/imports/fuel_year_good.csv +2 -2
  25. data/lib/earth.rb +5 -5
  26. data/lib/earth/air/airline/data_miner.rb +1 -0
  27. data/lib/earth/air/airport/data_miner.rb +1 -1
  28. data/lib/earth/air/flight_segment/data_miner.rb +5 -0
  29. data/lib/earth/automobile.rb +2 -0
  30. data/lib/earth/automobile/automobile_fuel.rb +93 -0
  31. data/lib/earth/automobile/automobile_fuel/data_miner.rb +60 -0
  32. data/lib/earth/automobile/automobile_fuel_type.rb +1 -0
  33. data/lib/earth/automobile/automobile_fuel_type/data_miner.rb +2 -1
  34. data/lib/earth/automobile/automobile_make/data_miner.rb +11 -0
  35. data/lib/earth/automobile/automobile_make_fleet_year.rb +2 -2
  36. data/lib/earth/automobile/automobile_make_model.rb +1 -1
  37. data/lib/earth/automobile/automobile_make_model/data_miner.rb +1 -0
  38. data/lib/earth/automobile/automobile_make_model_year/data_miner.rb +1 -0
  39. data/lib/earth/automobile/automobile_make_model_year_variant.rb +2 -1
  40. data/lib/earth/automobile/automobile_make_model_year_variant/data_miner.rb +21 -7
  41. data/lib/earth/automobile/automobile_make_year.rb +2 -2
  42. data/lib/earth/automobile/automobile_make_year/data_miner.rb +3 -0
  43. data/lib/earth/automobile/automobile_size_class/data_miner.rb +11 -7
  44. data/lib/earth/automobile/automobile_size_class_year/data_miner.rb +2 -1
  45. data/lib/earth/automobile/automobile_type_fuel_age.rb +1 -0
  46. data/lib/earth/automobile/automobile_type_fuel_age/data_miner.rb +52 -34
  47. data/lib/earth/automobile/automobile_type_fuel_control/data_miner.rb +1 -1
  48. data/lib/earth/automobile/automobile_type_fuel_year.rb +7 -0
  49. data/lib/earth/automobile/automobile_type_fuel_year/data_miner.rb +57 -63
  50. data/lib/earth/automobile/automobile_type_fuel_year_age.rb +13 -0
  51. data/lib/earth/automobile/automobile_type_fuel_year_age/data_miner.rb +184 -0
  52. data/lib/earth/automobile/automobile_type_fuel_year_control.rb +6 -0
  53. data/lib/earth/automobile/automobile_type_fuel_year_control/data_miner.rb +24 -8
  54. data/lib/earth/automobile/automobile_type_year.rb +2 -0
  55. data/lib/earth/automobile/automobile_type_year/data_miner.rb +28 -11
  56. data/lib/earth/automobile/data_miner.rb +2 -0
  57. data/lib/earth/bus/bus_class.rb +8 -8
  58. data/lib/earth/computation/computation_platform/data_miner.rb +1 -1
  59. data/lib/earth/computation/server_type/data_miner.rb +1 -1
  60. data/lib/earth/computation/server_type_alias/data_miner.rb +1 -1
  61. data/lib/earth/conversions_ext.rb +4 -0
  62. data/lib/earth/fuel.rb +1 -0
  63. data/lib/earth/fuel/data_miner.rb +1 -0
  64. data/lib/earth/fuel/fuel.rb +77 -0
  65. data/lib/earth/fuel/fuel/data_miner.rb +98 -0
  66. data/lib/earth/fuel/fuel_type/data_miner.rb +2 -2
  67. data/lib/earth/fuel/fuel_year/data_miner.rb +95 -26
  68. data/lib/earth/fuel/greenhouse_gas.rb +6 -0
  69. data/lib/earth/fuel/greenhouse_gas/data_miner.rb +1 -1
  70. data/lib/earth/hospitality/lodging_class/data_miner.rb +21 -9
  71. data/lib/earth/locality/census_division.rb +6 -5
  72. data/lib/earth/locality/census_division/data_miner.rb +9 -9
  73. data/lib/earth/locality/country.rb +9 -0
  74. data/lib/earth/locality/country/data_miner.rb +1 -1
  75. data/lib/earth/pet/breed/data_miner.rb +0 -1
  76. data/lib/earth/pet/breed_gender/data_miner.rb +0 -1
  77. data/lib/earth/shipping/carrier.rb +3 -3
  78. data/lib/earth/shipping/carrier/data_miner.rb +2 -2
  79. data/lib/earth/shipping/carrier_mode/data_miner.rb +15 -42
  80. data/lib/earth/shipping/shipment_mode/data_miner.rb +1 -1
  81. data/lib/earth/version.rb +1 -1
  82. data/spec/earth/automobile/automobile_fuel_spec.rb +19 -0
  83. data/spec/earth_spec.rb +3 -3
  84. metadata +141 -33
data/Gemfile CHANGED
@@ -5,6 +5,7 @@ gemspec
5
5
 
6
6
  gem 'data_miner', :path => ENV['LOCAL_DATA_MINER'] if ENV['LOCAL_DATA_MINER']
7
7
  gem 'sniff', :path => ENV['LOCAL_SNIFF'] if ENV['LOCAL_SNIFF']
8
+ gem 'roo', '1.9.3'
8
9
 
9
10
  if RUBY_VERSION =~ /^1\.8/
10
11
  gem 'fastercsv'
data/earth.gemspec CHANGED
@@ -4,8 +4,8 @@ require "earth/version"
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "earth"
7
- s.version = "0.3.15"
8
- s.date = "2011-01-28"
7
+ s.version = Earth::VERSION
8
+ s.date = "2011-02-17"
9
9
  s.platform = Gem::Platform::RUBY
10
10
  s.authors = ["Seamus Abshere", "Derek Kastner", "Andy Rossmeissl"]
11
11
  s.email = %q{andy@rossmeissl.net}
@@ -32,10 +32,10 @@ Gem::Specification.new do |s|
32
32
  s.add_runtime_dependency 'errata'
33
33
  s.add_runtime_dependency 'falls_back_on', '>= 0.0.3'
34
34
  s.add_runtime_dependency 'geokit', '>= 1.5.0'
35
+ s.add_runtime_dependency 'geokit-rails'
35
36
  s.add_runtime_dependency 'cohort_scope', '>= 0.0.7'
36
37
  s.add_runtime_dependency 'conversions', '>= 1.4.5'
37
38
  s.add_runtime_dependency 'weighted_average', '>= 0.0.4'
38
39
  s.add_runtime_dependency 'loose_tight_dictionary', '>= 0.0.8'
39
- s.add_development_dependency 'sniff', '~> 0.5.3'
40
- s.add_development_dependency 'bueller'
40
+ s.add_development_dependency 'sniff', '~> 0.6.1'
41
41
  end
@@ -0,0 +1,44 @@
1
+ Feature: Data import for AutomobileFuel
2
+ As a data user
3
+ I want to import AutomobileFuel data
4
+ So that I can perform fuel-based calculations
5
+
6
+ Scenario: Successfully verifying that base fuel name is never missing
7
+ Given a "AutomobileFuel" data import fetches results listed in "automobile_fuel_good"
8
+ When a data import verifies "Base fuel name should never be missing"
9
+ Then the verification should be successful
10
+
11
+ Scenario: Successfully verifying that distance key is never missing
12
+ Given a "AutomobileFuel" data import fetches results listed in "automobile_fuel_good"
13
+ When a data import verifies "Distance key should never be missing"
14
+ Then the verification should be successful
15
+
16
+ Scenario: Successfully verifying that ef key is never missing
17
+ Given a "AutomobileFuel" data import fetches results listed in "automobile_fuel_good"
18
+ When a data import verifies "Ef key should never be missing"
19
+ Then the verification should be successful
20
+
21
+ Scenario: Successfully verifying that blend portion is from 0 to 1 if present
22
+ Given a "AutomobileFuel" data import fetches results listed in "automobile_fuel_good"
23
+ When a data import verifies "Blend portion should be from 0 to 1 if present"
24
+ Then the verification should be successful
25
+
26
+ Scenario: Failing to verify that base fuel name is never missing
27
+ Given a "AutomobileFuel" data import fetches results listed in "automobile_fuel_bad"
28
+ When a data import verifies "Base fuel name should never be missing"
29
+ Then the verification should not be successful
30
+
31
+ Scenario: Failing to verify that distance key is never missing
32
+ Given a "AutomobileFuel" data import fetches results listed in "automobile_fuel_bad"
33
+ When a data import verifies "Distance key should never be missing"
34
+ Then the verification should not be successful
35
+
36
+ Scenario: Failing to verify that ef key is never missing
37
+ Given a "AutomobileFuel" data import fetches results listed in "automobile_fuel_bad"
38
+ When a data import verifies "Ef key should never be missing"
39
+ Then the verification should not be successful
40
+
41
+ Scenario: Failing to verify that blend portion is from 0 to 1 if present
42
+ Given a "AutomobileFuel" data import fetches results listed in "automobile_fuel_bad"
43
+ When a data import verifies "Blend portion should be from 0 to 1 if present"
44
+ Then the verification should not be successful
@@ -1,3 +1,4 @@
1
+ # DEPRECATED - use AutomobileTypeFuelYearAge
1
2
  Feature: Data import for AutomobileTypeFuelAge
2
3
  As a data user
3
4
  I want to import AutomobileTypeFuelAge data
@@ -18,7 +19,7 @@ Feature: Data import for AutomobileTypeFuelAge
18
19
  When a data import verifies "Age percent and total travel percent should be from zero to one"
19
20
  Then the verification should be successful
20
21
 
21
- Scenario: Successfully verifying that age annual distance and vehicles are greater than zero
22
+ Scenario: Successfully verifying that annual distance and vehicles are greater than zero
22
23
  Given a "AutomobileTypeFuelAge" data import fetches results listed in "automobile_type_fuel_age_good"
23
24
  When a data import verifies "Annual distance and vehicles should be greater than zero"
24
25
  Then the verification should be successful
@@ -3,9 +3,19 @@ Feature: Data import for AutomobileTypeFuelYear
3
3
  I want to import AutomobileTypeFuelYear data
4
4
  So that I can perform type fuel year-based calculations
5
5
 
6
- Scenario: Successfully verifying that type name and fuel common name are not missing
6
+ Scenario: Successfully verifying that type name is not missing
7
7
  Given a "AutomobileTypeFuelYear" data import fetches results listed in "automobile_type_fuel_year_good"
8
- When a data import verifies "Type name and fuel common name should never be missing"
8
+ When a data import verifies "Type name should never be missing"
9
+ Then the verification should be successful
10
+
11
+ Scenario: Successfully verifying that fuel common name is not missing
12
+ Given a "AutomobileTypeFuelYear" data import fetches results listed in "automobile_type_fuel_year_good"
13
+ When a data import verifies "Fuel common name should never be missing"
14
+ Then the verification should be successful
15
+
16
+ Scenario: Successfully verifying that type year name is not missing
17
+ Given a "AutomobileTypeFuelYear" data import fetches results listed in "automobile_type_fuel_year_good"
18
+ When a data import verifies "Type year name should never be missing"
9
19
  Then the verification should be successful
10
20
 
11
21
  Scenario: Successfully verifying that year is from 1990 to 2008
@@ -13,24 +23,59 @@ Feature: Data import for AutomobileTypeFuelYear
13
23
  When a data import verifies "Year should be from 1990 to 2008"
14
24
  Then the verification should be successful
15
25
 
16
- Scenario: Successfully verifying that total travel, fuel consumption, and emission factors are greater than zero
26
+ Scenario: Successfully verifying that total travel is greater than zero
27
+ Given a "AutomobileTypeFuelYear" data import fetches results listed in "automobile_type_fuel_year_good"
28
+ When a data import verifies "Total travel should be greater than zero"
29
+ Then the verification should be successful
30
+
31
+ Scenario: Successfully verifying that fuel consumption is greater than zero
32
+ Given a "AutomobileTypeFuelYear" data import fetches results listed in "automobile_type_fuel_year_good"
33
+ When a data import verifies "Fuel consumption should be greater than zero"
34
+ Then the verification should be successful
35
+
36
+ Scenario: Successfully verifying that ch4 emission factor is greater than zero
37
+ Given a "AutomobileTypeFuelYear" data import fetches results listed in "automobile_type_fuel_year_good"
38
+ When a data import verifies "Ch4 emission factor should be greater than zero"
39
+ Then the verification should be successful
40
+
41
+ Scenario: Successfully verifying that n2o emission factor is greater than zero
42
+ Given a "AutomobileTypeFuelYear" data import fetches results listed in "automobile_type_fuel_year_good"
43
+ When a data import verifies "N2o emission factor should be greater than zero"
44
+ Then the verification should be successful
45
+
46
+ Scenario: Successfully verifying that total travel units are kilometres
47
+ Given a "AutomobileTypeFuelYear" data import fetches results listed in "automobile_type_fuel_year_good"
48
+ When a data import verifies "Total travel units should be kilometres"
49
+ Then the verification should be successful
50
+
51
+ Scenario: Successfully verifying that fuel consumption units are litres
17
52
  Given a "AutomobileTypeFuelYear" data import fetches results listed in "automobile_type_fuel_year_good"
18
- When a data import verifies "Total travel, fuel consumption, and emission factors should be greater than zero"
53
+ When a data import verifies "Fuel consumption units should be litres"
19
54
  Then the verification should be successful
20
55
 
21
- Scenario: Successfully verifying that HFC emissions are zero or more
56
+ Scenario: Successfully verifying that ch4 emission factor units are kilograms per litre
22
57
  Given a "AutomobileTypeFuelYear" data import fetches results listed in "automobile_type_fuel_year_good"
23
- When a data import verifies "HFC emission factor should be zero or more"
58
+ When a data import verifies "Ch4 emission factor units should be kilograms per litre"
24
59
  Then the verification should be successful
25
60
 
26
- Scenario: Successfully verifying that units are correct
61
+ Scenario: Successfully verifying that n2o emission factor units are kilograms per litre
27
62
  Given a "AutomobileTypeFuelYear" data import fetches results listed in "automobile_type_fuel_year_good"
28
- When a data import verifies "Units should be correct"
63
+ When a data import verifies "N2o emission factor units should be kilograms per litre"
29
64
  Then the verification should be successful
30
65
 
31
- Scenario: Failing to verify that type name and fuel common name are not missing
66
+ Scenario: Failing to verify that type name is not missing
32
67
  Given a "AutomobileTypeFuelYear" data import fetches results listed in "automobile_type_fuel_year_bad"
33
- When a data import verifies "Type name and fuel common name should never be missing"
68
+ When a data import verifies "Type name should never be missing"
69
+ Then the verification should not be successful
70
+
71
+ Scenario: Failing to verify that fuel common name is not missing
72
+ Given a "AutomobileTypeFuelYear" data import fetches results listed in "automobile_type_fuel_year_bad"
73
+ When a data import verifies "Fuel common name should never be missing"
74
+ Then the verification should not be successful
75
+
76
+ Scenario: Failing to verify that type year name is not missing
77
+ Given a "AutomobileTypeFuelYear" data import fetches results listed in "automobile_type_fuel_year_bad"
78
+ When a data import verifies "Type year name should never be missing"
34
79
  Then the verification should not be successful
35
80
 
36
81
  Scenario: Failing to verify that year is from 1990 to 2008
@@ -38,17 +83,42 @@ Feature: Data import for AutomobileTypeFuelYear
38
83
  When a data import verifies "Year should be from 1990 to 2008"
39
84
  Then the verification should not be successful
40
85
 
41
- Scenario: Failing to verify that total travel, fuel consumption, and emission factors are greater than zero
86
+ Scenario: Failing to verify that total travel is greater than zero
87
+ Given a "AutomobileTypeFuelYear" data import fetches results listed in "automobile_type_fuel_year_bad"
88
+ When a data import verifies "Total travel should be greater than zero"
89
+ Then the verification should not be successful
90
+
91
+ Scenario: Failing to verify that fuel consumption is greater than zero
92
+ Given a "AutomobileTypeFuelYear" data import fetches results listed in "automobile_type_fuel_year_bad"
93
+ When a data import verifies "Fuel consumption should be greater than zero"
94
+ Then the verification should not be successful
95
+
96
+ Scenario: Failing to verify that ch4 emission factor is greater than zero
97
+ Given a "AutomobileTypeFuelYear" data import fetches results listed in "automobile_type_fuel_year_bad"
98
+ When a data import verifies "Ch4 emission factor should be greater than zero"
99
+ Then the verification should not be successful
100
+
101
+ Scenario: Failing to verify that n2o emission factor is greater than zero
102
+ Given a "AutomobileTypeFuelYear" data import fetches results listed in "automobile_type_fuel_year_bad"
103
+ When a data import verifies "N2o emission factor should be greater than zero"
104
+ Then the verification should not be successful
105
+
106
+ Scenario: Failing to verify that total travel units are kilometres
107
+ Given a "AutomobileTypeFuelYear" data import fetches results listed in "automobile_type_fuel_year_bad"
108
+ When a data import verifies "Total travel units should be kilometres"
109
+ Then the verification should not be successful
110
+
111
+ Scenario: Failing to verify that fuel consumption units are litres
42
112
  Given a "AutomobileTypeFuelYear" data import fetches results listed in "automobile_type_fuel_year_bad"
43
- When a data import verifies "Total travel, fuel consumption, and emission factors should be greater than zero"
113
+ When a data import verifies "Fuel consumption units should be litres"
44
114
  Then the verification should not be successful
45
115
 
46
- Scenario: Failing to vefify that HFC emissions are zero or more
116
+ Scenario: Failing to verify that ch4 emission factor units are kilograms per litre
47
117
  Given a "AutomobileTypeFuelYear" data import fetches results listed in "automobile_type_fuel_year_bad"
48
- When a data import verifies "HFC emission factor should be zero or more"
118
+ When a data import verifies "Ch4 emission factor units should be kilograms per litre"
49
119
  Then the verification should not be successful
50
120
 
51
- Scenario: Failing to verify that units are correct
121
+ Scenario: Failing to verify that n2o emission factor units are kilograms per litre
52
122
  Given a "AutomobileTypeFuelYear" data import fetches results listed in "automobile_type_fuel_year_bad"
53
- When a data import verifies "Units should be correct"
123
+ When a data import verifies "N2o emission factor units should be kilograms per litre"
54
124
  Then the verification should not be successful
@@ -0,0 +1,94 @@
1
+ Feature: Data import for AutomobileTypeFuelYearAge
2
+ As a data user
3
+ I want to import AutomobileTypeFuelYearAge data
4
+ So that I can perform type fuel year age-based calculations
5
+
6
+ Scenario: Successfully verifying that type name is not missing
7
+ Given a "AutomobileTypeFuelYearAge" data import fetches results listed in "automobile_type_fuel_year_age_good"
8
+ When a data import verifies "Type name should never be missing"
9
+ Then the verification should be successful
10
+
11
+ Scenario: Successfully verifying that fuel common name is not missing
12
+ Given a "AutomobileTypeFuelYearAge" data import fetches results listed in "automobile_type_fuel_year_age_good"
13
+ When a data import verifies "Fuel common name should never be missing"
14
+ Then the verification should be successful
15
+
16
+ Scenario: Successfully verifying that type fuel year name is not missing
17
+ Given a "AutomobileTypeFuelYearAge" data import fetches results listed in "automobile_type_fuel_year_age_good"
18
+ When a data import verifies "Type fuel year name should never be missing"
19
+ Then the verification should be successful
20
+
21
+ Scenario: Successfully verifying that year is 2008
22
+ Given a "AutomobileTypeFuelYearAge" data import fetches results listed in "automobile_type_fuel_year_age_good"
23
+ When a data import verifies "Year should be 2008"
24
+ Then the verification should be successful
25
+
26
+ Scenario: Successfully verifying that age is from zero to thirty
27
+ Given a "AutomobileTypeFuelYearAge" data import fetches results listed in "automobile_type_fuel_year_age_good"
28
+ When a data import verifies "Age should be from 0 to 30"
29
+ Then the verification should be successful
30
+
31
+ Scenario: Successfully verifying that total travel percent is from zero to one
32
+ Given a "AutomobileTypeFuelYearAge" data import fetches results listed in "automobile_type_fuel_year_age_good"
33
+ When a data import verifies "Total travel percent should be from 0 to 1"
34
+ Then the verification should be successful
35
+
36
+ Scenario: Successfully verifying that annual distance is greater than zero
37
+ Given a "AutomobileTypeFuelYearAge" data import fetches results listed in "automobile_type_fuel_year_age_good"
38
+ When a data import verifies "Annual distance should be greater than zero"
39
+ Then the verification should be successful
40
+
41
+ Scenario: Successfully verifying that vehicles is greater than zero
42
+ Given a "AutomobileTypeFuelYearAge" data import fetches results listed in "automobile_type_fuel_year_age_good"
43
+ When a data import verifies "Vehicles should be greater than zero"
44
+ Then the verification should be successful
45
+
46
+ Scenario: Successfully verifying that annual distance units are kilometres
47
+ Given a "AutomobileTypeFuelYearAge" data import fetches results listed in "automobile_type_fuel_year_age_good"
48
+ When a data import verifies "Annual distance units should be kilometres"
49
+ Then the verification should be successful
50
+
51
+ Scenario: Failing to verify that type name is not missing
52
+ Given a "AutomobileTypeFuelYearAge" data import fetches results listed in "automobile_type_fuel_year_age_bad"
53
+ When a data import verifies "Type name should never be missing"
54
+ Then the verification should not be successful
55
+
56
+ Scenario: Failing to verify that fuel common name is not missing
57
+ Given a "AutomobileTypeFuelYearAge" data import fetches results listed in "automobile_type_fuel_year_age_bad"
58
+ When a data import verifies "Fuel common name should never be missing"
59
+ Then the verification should not be successful
60
+
61
+ Scenario: Failing to verify that type fuel year name is not missing
62
+ Given a "AutomobileTypeFuelYearAge" data import fetches results listed in "automobile_type_fuel_year_age_bad"
63
+ When a data import verifies "Type fuel year name should never be missing"
64
+ Then the verification should not be successful
65
+
66
+ Scenario: Failing to verify that year is 2008
67
+ Given a "AutomobileTypeFuelYearAge" data import fetches results listed in "automobile_type_fuel_year_age_bad"
68
+ When a data import verifies "Year should be 2008"
69
+ Then the verification should not be successful
70
+
71
+ Scenario: Failing to verify that age is from zero to thirty
72
+ Given a "AutomobileTypeFuelYearAge" data import fetches results listed in "automobile_type_fuel_year_age_bad"
73
+ When a data import verifies "Age should be from 0 to 30"
74
+ Then the verification should not be successful
75
+
76
+ Scenario: Failing to verify that total travel percent is from zero to one
77
+ Given a "AutomobileTypeFuelYearAge" data import fetches results listed in "automobile_type_fuel_year_age_bad"
78
+ When a data import verifies "Total travel percent should be from 0 to 1"
79
+ Then the verification should not be successful
80
+
81
+ Scenario: Failing to verify that annual distance is greater than zero
82
+ Given a "AutomobileTypeFuelYearAge" data import fetches results listed in "automobile_type_fuel_year_age_bad"
83
+ When a data import verifies "Annual distance should be greater than zero"
84
+ Then the verification should not be successful
85
+
86
+ Scenario: Failing to verify that vehicles is greater than zero
87
+ Given a "AutomobileTypeFuelYearAge" data import fetches results listed in "automobile_type_fuel_year_age_bad"
88
+ When a data import verifies "Vehicles should be greater than zero"
89
+ Then the verification should not be successful
90
+
91
+ Scenario: Failing to verify that annual distance units are kilometres
92
+ Given a "AutomobileTypeFuelYearAge" data import fetches results listed in "automobile_type_fuel_year_age_bad"
93
+ When a data import verifies "Annual distance units should be kilometres"
94
+ Then the verification should not be successful
@@ -3,9 +3,29 @@ Feature: Data import for AutomobileTypeFuelYearControl
3
3
  I want to import AutomobileTypeFuelYearControl data
4
4
  So that I can perform type fuel year control-based calculations
5
5
 
6
- Scenario: Successfully verifying that type name, fuel common name, and control name are not missing
6
+ Scenario: Successfully verifying that type name is not missing
7
7
  Given a "AutomobileTypeFuelYearControl" data import fetches results listed in "automobile_type_fuel_year_control_good"
8
- When a data import verifies "Type name, fuel common name, and control name should never be missing"
8
+ When a data import verifies "Type name should never be missing"
9
+ Then the verification should be successful
10
+
11
+ Scenario: Successfully verifying that fuel common name is not missing
12
+ Given a "AutomobileTypeFuelYearControl" data import fetches results listed in "automobile_type_fuel_year_control_good"
13
+ When a data import verifies "Fuel common name should never be missing"
14
+ Then the verification should be successful
15
+
16
+ Scenario: Successfully verifying that control name is not missing
17
+ Given a "AutomobileTypeFuelYearControl" data import fetches results listed in "automobile_type_fuel_year_control_good"
18
+ When a data import verifies "Control name should never be missing"
19
+ Then the verification should be successful
20
+
21
+ Scenario: Successfully verifying that type fuel control name is not missing
22
+ Given a "AutomobileTypeFuelYearControl" data import fetches results listed in "automobile_type_fuel_year_control_good"
23
+ When a data import verifies "Type fuel control name should never be missing"
24
+ Then the verification should be successful
25
+
26
+ Scenario: Successfully verifying that type fuel year name is not missing
27
+ Given a "AutomobileTypeFuelYearControl" data import fetches results listed in "automobile_type_fuel_year_control_good"
28
+ When a data import verifies "Type fuel year name should never be missing"
9
29
  Then the verification should be successful
10
30
 
11
31
  Scenario: Successfully verifying that year is from 1990 to 2008
@@ -18,9 +38,29 @@ Feature: Data import for AutomobileTypeFuelYearControl
18
38
  # When a data import verifies "Total travel percent for each type fuel year should sum to one"
19
39
  # Then the verification should be successful
20
40
  #
21
- Scenario: Failing to verify that type name, fuel common name, and control name are not missing
41
+ Scenario: Failing to verify that type name is not missing
42
+ Given a "AutomobileTypeFuelYearControl" data import fetches results listed in "automobile_type_fuel_year_control_bad"
43
+ When a data import verifies "Type name should never be missing"
44
+ Then the verification should not be successful
45
+
46
+ Scenario: Failing to verify that fuel common name is not missing
47
+ Given a "AutomobileTypeFuelYearControl" data import fetches results listed in "automobile_type_fuel_year_control_bad"
48
+ When a data import verifies "Fuel common name should never be missing"
49
+ Then the verification should not be successful
50
+
51
+ Scenario: Failing to verify that control name is not missing
52
+ Given a "AutomobileTypeFuelYearControl" data import fetches results listed in "automobile_type_fuel_year_control_bad"
53
+ When a data import verifies "Control name should never be missing"
54
+ Then the verification should not be successful
55
+
56
+ Scenario: Failing to verify that type fuel control name is not missing
57
+ Given a "AutomobileTypeFuelYearControl" data import fetches results listed in "automobile_type_fuel_year_control_bad"
58
+ When a data import verifies "Type fuel control name should never be missing"
59
+ Then the verification should not be successful
60
+
61
+ Scenario: Failing to verify that type fuel year name is not missing
22
62
  Given a "AutomobileTypeFuelYearControl" data import fetches results listed in "automobile_type_fuel_year_control_bad"
23
- When a data import verifies "Type name, fuel common name, and control name should never be missing"
63
+ When a data import verifies "Type fuel year name should never be missing"
24
64
  Then the verification should not be successful
25
65
 
26
66
  Scenario: Failing to verify that year is from 1990 to 2008
@@ -1,7 +1,7 @@
1
1
  Feature: Data import for AutomobileTypeYear
2
2
  As a data user
3
3
  I want to import AutomobileTypeYear data
4
- So that I can perform type fuel year control-based calculations
4
+ So that I can perform type year-based calculations
5
5
 
6
6
  Scenario: Successfully verifying that type name is never missing
7
7
  Given a "AutomobileTypeYear" data import fetches results listed in "automobile_type_year_good"
@@ -13,14 +13,24 @@ Feature: Data import for AutomobileTypeYear
13
13
  When a data import verifies "Year should be from 1990 to 2008"
14
14
  Then the verification should be successful
15
15
 
16
- Scenario: Successfully verifying that HFC emissions are zero or more
16
+ Scenario: Successfully verifying that HFC emissions is zero or more
17
17
  Given a "AutomobileTypeYear" data import fetches results listed in "automobile_type_year_good"
18
- When a data import verifies "HFC emissions should be zero or more"
18
+ When a data import verifies "Hfc emissions should be zero or more"
19
+ Then the verification should be successful
20
+
21
+ Scenario: Successfully verifying that HFC emission factor is zero or more
22
+ Given a "AutomobileTypeYear" data import fetches results listed in "automobile_type_year_good"
23
+ When a data import verifies "Hfc emission factor should be zero or more"
19
24
  Then the verification should be successful
20
25
 
21
26
  Scenario: Successfully verifying that HFC emissions units are kilograms CO2e
22
27
  Given a "AutomobileTypeYear" data import fetches results listed in "automobile_type_year_good"
23
- When a data import verifies "HFC emissions units should be kilograms CO2e"
28
+ When a data import verifies "Hfc emissions units should be kilograms co2e"
29
+ Then the verification should be successful
30
+
31
+ Scenario: Successfully verifying that HFC emission factor units are kilograms CO2e per litre
32
+ Given a "AutomobileTypeYear" data import fetches results listed in "automobile_type_year_good"
33
+ When a data import verifies "Hfc emission factor units should be kilograms co2e per litre"
24
34
  Then the verification should be successful
25
35
 
26
36
  Scenario: Failing to verify that type name is never missing
@@ -33,12 +43,22 @@ Feature: Data import for AutomobileTypeYear
33
43
  When a data import verifies "Year should be from 1990 to 2008"
34
44
  Then the verification should not be successful
35
45
 
36
- Scenario: Failing to verify that HFC emissions are zero or more
46
+ Scenario: Failing to verify that HFC emissions is zero or more
37
47
  Given a "AutomobileTypeYear" data import fetches results listed in "automobile_type_year_bad"
38
- When a data import verifies "HFC emissions should be zero or more"
48
+ When a data import verifies "Hfc emissions should be zero or more"
49
+ Then the verification should not be successful
50
+
51
+ Scenario: Failing to verify that HFC emission factor is zero or more
52
+ Given a "AutomobileTypeYear" data import fetches results listed in "automobile_type_year_bad"
53
+ When a data import verifies "Hfc emission factor should be zero or more"
39
54
  Then the verification should not be successful
40
55
 
41
56
  Scenario: Failing to verify that HFC emissions units are kilograms CO2e
42
57
  Given a "AutomobileTypeYear" data import fetches results listed in "automobile_type_year_bad"
43
- When a data import verifies "HFC emissions units should be kilograms CO2e"
58
+ When a data import verifies "Hfc emissions units should be kilograms co2e"
59
+ Then the verification should not be successful
60
+
61
+ Scenario: Failing to verify that HFC emission factor units are kilograms CO2e per litre
62
+ Given a "AutomobileTypeYear" data import fetches results listed in "automobile_type_year_bad"
63
+ When a data import verifies "Hfc emission factor units should be kilograms co2e per litre"
44
64
  Then the verification should not be successful