summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2008-02-25 18:28:14 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2008-02-25 18:28:14 +0000
commitc6417cddcec1a3f1cd19502dcb20e24c52f21056 (patch)
treed58ee7f8e9b5c9b02e621145781b7f3627e865a9 /t
parent13938186203ef7181d437ee11e699199d5d9d9aa (diff)
Adding test for elements.html stuff
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@2086 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 't')
-rw-r--r--t/04-template-handling.t12
1 files changed, 11 insertions, 1 deletions
diff --git a/t/04-template-handling.t b/t/04-template-handling.t
index e5cd0347..96dde50b 100644
--- a/t/04-template-handling.t
+++ b/t/04-template-handling.t
@@ -376,4 +376,14 @@ cmp_ok($number->[1], 'eq', 'hello',
$template = undef;
$form = undef;
-$form = new Form;
+my $lsmb = LedgerSMB->new();
+$locale = LedgerSMB::Locale->get_handle( ${LedgerSMB::Sysconfig::language} )
+ or $lsmb->error( __FILE__ . ':' . __LINE__ . ": Locale not loaded: $!\n" );
+
+
+$template = new LedgerSMB::Template('user' => {numberformat => '1.000,00'},
+ 'format' => 'HTML', path => 't/data', locale => $locale, 'template' => '04-complex_template', 'no_auto_output' => 1);
+
+$template->render({});
+
+