[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[3377] trunk



Revision: 3377
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=3377&view=rev
Author:   einhverfr
Date:     2011-06-29 07:30:20 +0000 (Wed, 29 Jun 2011)

Log Message:
-----------
Voucher tests now passing

Modified Paths:
--------------
    trunk/sql/modules/test/Voucher.sql
    trunk/t/43-dbtest.t

Modified: trunk/sql/modules/test/Voucher.sql
===================================================================
--- trunk/sql/modules/test/Voucher.sql	2011-06-28 17:23:09 UTC (rev 3376)
+++ trunk/sql/modules/test/Voucher.sql	2011-06-29 07:30:20 UTC (rev 3377)
@@ -63,7 +63,10 @@
 
 -- Adding the test for empty batch sproc
 
-insert into batch (batch_class_id, control_code, description, default_date, created_by) values (1, 'EMPTYBATCHTEST1', 'EMPTY BATCH TEST', '2009-01-01', -3);
+INSERT INTO test_result(test_name, success)
+SELECT 'creating batch 2', 
+batch_create('EMPTYBATCHTEST1', 'EMPTY BATCH TEST', 'ap', '2008-01-01') 
+IS NOT NULL;
 
 INSERT INTO test_result (test_name, success)
 SELECT 'Empty Batch Detected', count(*) = 1
@@ -100,4 +103,4 @@
 || (select count(*) from test_result where success is not true) 
 || ' failed' as message;
 
-ROLLBACK;
+--ROLLBACK;

Modified: trunk/t/43-dbtest.t
===================================================================
--- trunk/t/43-dbtest.t	2011-06-28 17:23:09 UTC (rev 3376)
+++ trunk/t/43-dbtest.t	2011-06-29 07:30:20 UTC (rev 3377)
@@ -5,7 +5,7 @@
 	plan skip_all => 'Skipping all.  Told not to test db.';
 }
 else {
-	plan tests => 116;
+	plan tests => 117;
 	if (defined $ENV{LSMB_NEW_DB}){
 		$ENV{PGDATABASE} = $ENV{LSMB_NEW_DB};
 	}


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.