features/purchase_committees.feature in purchase-1.0.1 vs features/purchase_committees.feature in purchase-1.0.2
- old
+ new
@@ -48,25 +48,25 @@
Scenario: Merchant category committee from default
Given a purchase emitter
When the "merchant_category" committee is calculated
Then the conclusion of the committee should have "mcc" of "5111"
- Scenario Outline: Merchant categories industries committee
+ Scenario Outline: Merchant category industries committee from merchant category
Given a purchase emitter
And a characteristic "merchant_category.mcc" of "<mcc>"
- When the "merchant_categories_industries" committee is calculated
+ When the "merchant_category_industries" committee is calculated
Then the conclusion of the committee should have a record identified with "naics_code" of "<naics>" and having "ratio" of "<ratio>"
Examples:
| mcc | naics | ratio |
| 5812 | 72211 | 1 |
| 9999 | 999991 | 0.5 |
| 9999 | 999992 | 0.5 |
Scenario Outline: Industry shares committee
Given a purchase emitter
And a characteristic "merchant_category.mcc" of "<mcc>"
- When the "merchant_categories_industries" committee is calculated
+ When the "merchant_category_industries" committee is calculated
And the "industry_shares" committee is calculated
Then the conclusion of the committee should have a record identified with "naics_code" of "<naics>" and having "ratio" of "<share>"
Examples:
| mcc | naics | share |
| 5812 | 72211 | 1.0 |
@@ -86,11 +86,11 @@
| 999992 | 99993 | 0.25 |
Scenario Outline: Product line shares committee from merchant category
Given a purchase emitter
And a characteristic "merchant_category.mcc" of "<mcc>"
- When the "merchant_categories_industries" committee is calculated
+ When the "merchant_category_industries" committee is calculated
And the "industry_shares" committee is calculated
And the "product_line_shares" committee is calculated
Then the conclusion of the committee should have a record identified with "ps_code" of "<ps_code>" and having "ratio" of "<share>"
Examples:
| mcc | ps_code | share |
@@ -99,11 +99,11 @@
| 9999 | 99993 | 0.125 |
Scenario Outline: Industries sectors committee from industry
Given a purchase emitter
And a characteristic "naics_code" of "<naics>"
- When the "industries_sectors" committee is calculated
+ When the "industry_sectors" committee is calculated
Then the committee should have used quorum "from industry"
And the conclusion of the committee should have a record identified with "io_code" of "<io_code>" and having "ratio" of "<share>"
Examples:
| naics | io_code | share |
| 45321 | 4A0000 | 1.0 |
@@ -117,13 +117,13 @@
Given a purchase emitter
And a characteristic "merchant_category.mcc" of "<mcc>"
And a characteristic "cost" of "100"
And a characteristic "date" of "2010-08-01"
When the "adjusted_cost" committee is calculated
- And the "merchant_categories_industries" committee is calculated
+ And the "merchant_category_industries" committee is calculated
And the "industry_shares" committee is calculated
- And the "industries_sectors" committee is calculated
+ And the "industry_sectors" committee is calculated
Then the committee should have used quorum "from industry shares"
And the conclusion of the committee should have a record identified with "io_code" of "<io_code>" and having "ratio" of "<share>"
Examples:
| mcc | io_code | share |
| 5812 | 26 | 1.0 |
@@ -132,14 +132,14 @@
Scenario Outline: Sector shares committee from industry and product line shares
Given a purchase emitter
And a characteristic "merchant_category.mcc" of "<mcc>"
And a characteristic "adjusted_cost" of "1"
- When the "merchant_categories_industries" committee is calculated
+ When the "merchant_category_industries" committee is calculated
And the "industry_shares" committee is calculated
And the "product_line_shares" committee is calculated
- And the "industries_sectors" committee is calculated
+ And the "industry_sectors" committee is calculated
And the "sector_shares" committee is calculated
Then the conclusion of the committee should be a vector with values "<1>,<10>,<11>,<12>,<13>,<14>,<15>,<16>,<17>,<18>,<19>,<2>,<20>,<21>,<22>,<23>,<24>,<25>,<26>,<3>,<4>,<44100>,<44102>,<44103>,<44104>,<44105>,<5>,<6>,<7>,<8>,<9>,<A>,<B>,<C>,<D>"
Examples:
| mcc|1|10|11|12|13|14|15|16|17|18|19|2|20|21|22|23|24|25| 26|3|4|44100|44102|44103|44104|44105|5|6|7|8|9| A| B| C| D|
|5812|0| 0| 0| 0| 0| 0| 0| 0| 0| 0| 0|0| 0| 0| 0| 0| 0| 0|1.0|0|0| 0| 0| 0| 0| 0|0|0|0|0|0| 0| 0| 0| 0|
@@ -154,14 +154,14 @@
Given a purchase emitter
And a characteristic "merchant_category.mcc" of "5812"
And a characteristic "date" of "2010-08-01"
And a characteristic "cost" of "100"
When the "adjusted_cost" committee is calculated
- And the "merchant_categories_industries" committee is calculated
+ And the "merchant_category_industries" committee is calculated
And the "industry_shares" committee is calculated
And the "product_line_shares" committee is calculated
- And the "industries_sectors" committee is calculated
+ And the "industry_sectors" committee is calculated
And the "sector_shares" committee is calculated
And the "sector_direct_requirements" committee is calculated
And the "economic_flows" committee is calculated
Then the conclusion of the committee should be a vector with "35" items
@@ -169,13 +169,13 @@
Given a purchase emitter
And a characteristic "merchant_category.mcc" of "<mcc>"
And a characteristic "date" of "2010-08-01"
And a characteristic "cost" of "100"
When the "adjusted_cost" committee is calculated
- And the "merchant_categories_industries" committee is calculated
+ And the "merchant_category_industries" committee is calculated
And the "industry_shares" committee is calculated
And the "product_line_shares" committee is calculated
- And the "industries_sectors" committee is calculated
+ And the "industry_sectors" committee is calculated
And the "sector_shares" committee is calculated
And the "sector_direct_requirements" committee is calculated
And the "economic_flows" committee is calculated
And the "impact_vectors" committee is calculated
And the "impacts" committee is calculated