Display count of dirty variant overrides

This commit is contained in:
Rohan Mitchell
2014-12-10 10:37:52 +11:00
parent a1fc4dec43
commit c62ce57e0f
3 changed files with 33 additions and 1 deletions

View File

@@ -38,3 +38,24 @@ describe "maintaining a list of dirty variant overrides", ->
hub_id: 2
price: 3
count_on_hand: 4
it "counts dirty variant overrides", ->
DirtyVariantOverrides.dirtyVariantOverrides =
2:
1:
variant_id: 5
hub_id: 6
price: 7
count_on_hand: 8
3:
variant_id: 9
hub_id: 10
price: 11
count_on_hand: 12
4:
5:
variant_id: 13
hub_id: 14
price: 15
count_on_hand: 16
expect(DirtyVariantOverrides.count()).toEqual 3