From f34a6c37b82b6e88348831f85272201e4fa4ebf0 Mon Sep 17 00:00:00 2001 From: pschifferer Date: Sun, 15 Mar 2009 15:05:51 +0000 Subject: [PATCH] Removed WoWUnit from pkgmeta, because it should be installed as its own addon instead of embedded. Added a check to the unit test file to make sure WoWUnit is available before registering a test suite. --- .pkgmeta | 3 --- CauldronUnitTests.lua | 6 +++++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.pkgmeta b/.pkgmeta index 74ce385..6b702e5 100644 --- a/.pkgmeta +++ b/.pkgmeta @@ -39,6 +39,3 @@ externals: Libs/LibLogger-1.0: url: svn://svn.wowace.com/wow/liblogger-1-0/mainline/trunk/LibLogger-1.0 tag: latest - Libs/WoWUnit-1.0.9: - url: svn://svn.wowace.com/wow/wowunit/mainline/trunk - tag: latest diff --git a/CauldronUnitTests.lua b/CauldronUnitTests.lua index fc4f8c4..c38a36d 100644 --- a/CauldronUnitTests.lua +++ b/CauldronUnitTests.lua @@ -1,6 +1,7 @@ -- unit tests -- $Revision$ +--@alpha@ local CauldronTestSuite = { mocks = { GetItemCount = function(arg) @@ -28,5 +29,8 @@ local CauldronTestSuite = { end; }; -WoWUnit:AddTestSuite("CauldronTestSuite", CauldronTestSuite); +if WoWUnit then + WoWUnit:AddTestSuite("CauldronTestSuite", CauldronTestSuite); +end +--@end-alpha@ -- 1.7.9.5