automobile 0.0.15 → 0.0.16
Sign up to get free protection for your applications and to get access to all the features.
- data/features/automobile_emissions.feature +8 -0
- metadata +8 -8
@@ -11,3 +11,11 @@ Feature: Automobile Emissions Calculations
|
|
11
11
|
| distance | make_model_year | timeframe | emission |
|
12
12
|
| 30000 | Acura RSX 2003 | 2010-03-01/2010-12-21| 7036.7 |
|
13
13
|
| 80000 | Honda FIT 2008 | 2009-01-01/2009-12-31| 23153.5 |
|
14
|
+
|
15
|
+
Scenario: Calculation with multiple distance estimates
|
16
|
+
Given an automobile has "annual_distance_estimate" of "33796.2"
|
17
|
+
And it has "daily_duration" of "3.0"
|
18
|
+
And it has "timeframe" of "2010-01-01/2011-01-01"
|
19
|
+
And it has "weekly_distance_estimate" of "804.672"
|
20
|
+
When emissions are calculated
|
21
|
+
Then the emission value should be within "0.1" kgs of "9808.1"
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 16
|
9
|
+
version: 0.0.16
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Andy Rossmeissl
|
@@ -18,7 +18,7 @@ autorequire:
|
|
18
18
|
bindir: bin
|
19
19
|
cert_chain: []
|
20
20
|
|
21
|
-
date: 2010-
|
21
|
+
date: 2010-11-18 00:00:00 -05:00
|
22
22
|
default_executable:
|
23
23
|
dependencies:
|
24
24
|
- !ruby/object:Gem::Dependency
|
@@ -149,8 +149,8 @@ dependencies:
|
|
149
149
|
segments:
|
150
150
|
- 0
|
151
151
|
- 1
|
152
|
-
-
|
153
|
-
version: 0.1.
|
152
|
+
- 16
|
153
|
+
version: 0.1.16
|
154
154
|
type: :runtime
|
155
155
|
prerelease: false
|
156
156
|
version_requirements: *id009
|
@@ -173,8 +173,8 @@ files:
|
|
173
173
|
- lib/automobile/summarization.rb
|
174
174
|
- lib/test_support/automobile_record.rb
|
175
175
|
- features/support/env.rb
|
176
|
-
- features/automobile_committees.feature
|
177
176
|
- features/automobile_emissions.feature
|
177
|
+
- features/automobile_committees.feature
|
178
178
|
has_rdoc: true
|
179
179
|
homepage: http://github.com/brighterplanet/automobile
|
180
180
|
licenses: []
|
@@ -189,7 +189,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
189
189
|
requirements:
|
190
190
|
- - ">="
|
191
191
|
- !ruby/object:Gem::Version
|
192
|
-
hash: -
|
192
|
+
hash: -998665375
|
193
193
|
segments:
|
194
194
|
- 0
|
195
195
|
version: "0"
|
@@ -210,6 +210,6 @@ specification_version: 3
|
|
210
210
|
summary: A carbon model
|
211
211
|
test_files:
|
212
212
|
- features/support/env.rb
|
213
|
-
- features/automobile_committees.feature
|
214
213
|
- features/automobile_emissions.feature
|
214
|
+
- features/automobile_committees.feature
|
215
215
|
- lib/test_support/automobile_record.rb
|