diff Modules/UnitTests.lua @ 82:e9f7bc9199ca release 2010-08-05

Fixed Bug 23 - When you purchase multiple stacks of the same item and it is one you have not invested in yet, ItemAuditor mistakenly counted items you have not yet pulled from the mail as items you already owned. This resulted in those items being counted twice.
author Asa Ayers <Asa.Ayers@Gmail.com>
date Thu, 05 Aug 2010 22:20:44 -0700
parents 4ae431c98059
children
line wrap: on
line diff
--- a/Modules/UnitTests.lua	Thu Aug 05 20:21:05 2010 -0700
+++ b/Modules/UnitTests.lua	Thu Aug 05 22:20:44 2010 -0700
@@ -124,8 +124,8 @@
 			},
 		}
 		
-		backups['Altoholic.GetItemCount'] = Altoholic.GetItemCount
-		Altoholic.GetItemCount = function(self, id) 
+		backups['ItemAuditor.GetItemCount'] = ItemAuditor.GetItemCount
+		ItemAuditor.GetItemCount = function(self, id)
 			local total = GetItemCount(id)
 			total = total + (fakeAlts[id] or 0)
 			
@@ -140,7 +140,7 @@
 		ItemAuditor:Print('Unit Test tearDown')
 		ItemAuditor:UpdateCurrentInventory()
 		ItemAuditor.db = backups['ItemAuditor.db']
-		Altoholic.GetItemCount = backups['Altoholic.GetItemCount']		
+		ItemAuditor.GetItemCount = backups['ItemAuditor.GetItemCount']
 	end;
 	
 	testMockGetContainerItemLink = function()