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

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



Revision: 2423
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=2423&view=rev
Author:   einhverfr
Date:     2008-12-04 18:04:18 +0000 (Thu, 04 Dec 2008)

Log Message:
-----------
Correcting accounts tests

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

Modified: trunk/sql/modules/test/Account.sql
===================================================================
--- trunk/sql/modules/test/Account.sql	2008-12-01 02:15:53 UTC (rev 2422)
+++ trunk/sql/modules/test/Account.sql	2008-12-04 18:04:18 UTC (rev 2423)
@@ -8,9 +8,15 @@
 INSERT INTO chart (description, charttype, category, accno)
 VALUES ('TEST testing 2', 'A', 'A', '00002');
 
-INSERT INTO ap (invnumber, netamount, amount) VALUES ('TEST', '0', '0');
+INSERT INTO entity (id, control_code, name, entity_class) 
+values (-100, 'test1', 'test', 3);
+INSERT INTO entity_credit_account (id, meta_number, entity_id, entity_class) 
+values (-100, 'test1', -100, 1);
+
+INSERT INTO ap (invnumber, netamount, amount, entity_credit_account, id) 
+VALUES ('TEST', '0', '0', -100, -100);
 INSERT INTO acc_trans (trans_id, chart_id, amount)
-VALUES (currval('id')::int, currval('chart_id_seq')::int, '0');
+VALUES (-100, currval('chart_id_seq')::int, '0');
 
 INSERT INTO chart (description, charttype, category, accno, link)
 VALUES ('TEST AP 1', 'A', 'L', '00003', 'AP');

Modified: trunk/t/43-dbtest.t
===================================================================
--- trunk/t/43-dbtest.t	2008-12-01 02:15:53 UTC (rev 2422)
+++ trunk/t/43-dbtest.t	2008-12-04 18:04:18 UTC (rev 2423)
@@ -5,7 +5,7 @@
 	plan skip_all => 'Skipping all.  Told not to test db.';
 }
 else {
-	plan tests => 52;
+	plan tests => 54;
 	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.