features/purchase_emissions.feature in purchase-1.0.3 vs features/purchase_emissions.feature in purchase-1.0.4
- old
+ new
@@ -21,32 +21,32 @@
When emissions are calculated
Then the emission value should be within "0.001" kgs of "<emission>"
Examples:
| id | emission |
| 1 | 126.538 |
- | 2 | 220.613 |
+ | 2 | 274.131 |
Scenario Outline: Calculations starting from a merchant with purchase amount
Given a purchase has "merchant.id" of "<id>"
And it has "purchase_amount" of "<amount>"
When emissions are calculated
Then the emission value should be within "0.001" kgs of "<emission>"
Examples:
| id | amount | emission |
| 1 | 107.11 | 126.538 |
- | 2 | 107.11 | 220.613 |
+ | 2 | 107.11 | 274.131 |
Scenario Outline: Calculations starting from a merchant with purchase amount and date
Given a purchase has "merchant.id" of "<id>"
And it has "purchase_amount" of "<amount>"
And it has "date" of "<date>"
When emissions are calculated
Then the emission value should be within "0.001" kgs of "<emission>"
Examples:
| id | amount | date | emission |
| 1 | 107.11 | 2010-07-28 | 126.538 |
- | 2 | 107.11 | 2010-07-28 | 220.613 |
+ | 2 | 107.11 | 2010-07-28 | 274.131 |
Scenario Outline: Calculations starting from a merchant with purchase amount, date, and tax
Given a purchase has "merchant.id" of "<id>"
And it has "purchase_amount" of "<amount>"
And it has "tax" of "<tax>"
@@ -54,22 +54,22 @@
When emissions are calculated
Then the emission value should be within "0.001" kgs of "<emission>"
Examples:
| id | amount | tax | date | emission |
| 1 | 108.00 | 8.00 | 2010-07-28 | 126.538 |
- | 2 | 108.00 | 8.00 | 2010-07-28 | 220.613 |
+ | 2 | 108.00 | 8.00 | 2010-07-28 | 274.131 |
Scenario Outline: Calculations starting from a merchant category
Given a purchase has "merchant_category.mcc" of "<mcc>"
And it has "cost" of "<cost>"
And it has "date" of "<date>"
When emissions are calculated
Then the emission value should be within "0.001" kgs of "<emission>"
Examples:
| mcc | cost | date | emission |
| 1111 | 100.00 | 2010-07-28 | 126.538 |
- | 2222 | 100.00 | 2010-07-28 | 220.613 |
+ | 2222 | 100.00 | 2010-07-28 | 274.131 |
| 5111 | 100.00 | 2010-07-28 | 126.538 |
Scenario Outline: Calculations starting from industry
Given a purchase has "industry.naics_code" of "<naics>"
And it has "cost" of "<cost>"
@@ -78,6 +78,6 @@
Then the emission value should be within "0.001" kgs of "<emission>"
Examples:
| naics | cost | date | emission |
| 111111 | 100.00 | 2010-07-28 | 126.538 |
| 399900 | 100.00 | 2010-07-28 | 334.190 |
- | 459000 | 100.00 | 2010-07-28 | 107.036 |
+ | 459000 | 100.00 | 2010-07-28 | 214.072 |