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

SF.net SVN: ledger-smb:[2525] trunk/t/62-api.t



Revision: 2525
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=2525&view=rev
Author:   einhverfr
Date:     2009-03-23 18:00:04 +0000 (Mon, 23 Mar 2009)

Log Message:
-----------
Corrections to test case scripts

Modified Paths:
--------------
    trunk/t/62-api.t

Modified: trunk/t/62-api.t
===================================================================
--- trunk/t/62-api.t	2009-03-23 17:47:40 UTC (rev 2524)
+++ trunk/t/62-api.t	2009-03-23 18:00:04 UTC (rev 2525)
@@ -23,7 +23,7 @@
 
 for (qw(	drafts.pl     login.pl      payment.pl      
 		report.pl    employee.pl   menu.pl       vendor.pl
-		customer.pl  inventory.pl  vouchers.pl recon.pl)
+		customer.pl  inventory.pl  vouchers.pl recon.pl menu.pl)
     ){
 	ok(eval { require "scripts/$_" }, "Importing $_");
 	if ($@){
@@ -59,6 +59,9 @@
 		$request->merge($test);
 		$request->{_locale} = $locale;
 		my $script = $test->{module};
+		if (!$request->{action}){
+			$request->{action} = '__default';
+		}
 		$request->{dbh} = $dbh;
 		if (ref $api_test_cases->{"$test->{_test_id}"} eq 'CODE'){
 			$request->{_test_cases} = 


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